Function at 0x470048
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
xor eax, eax
push ebp
push 0x4702f3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov ecx, 0x470310
mov edx, dword [ebp - 4]
call fcn.004044f4
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004046a8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x4702a3
test dword [ebp - 0x16c], 0x10
jbe 0x470115
cmp byte [ebp - 0x140], 0x2e
je 0x47028e
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x140]
mov ecx, 0x104
call fcn.00404458
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0x47031c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404568
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00470048
mov dword [ebp - 0x1c], eax
jmp 0x47028e
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x140]
mov ecx, 0x104
call fcn.00404458
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004044f4
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004046a8
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0045c4f8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x2c], 0xc800000
jb 0x470171
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.004041e8
mov eax, dword [ebp - 0x10]
call fcn.004044a8
mov ebx, eax
test ebx, ebx
jle 0x470203
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + ebx - 1]
call fcn.004043d0
mov eax, dword [ebp - 0x14]
mov edx, 0x470328
call fcn.004045f4
je 0x470203
mov eax, dword [ebp - 0x14]
mov edx, 0x47031c
call fcn.004045f4
je 0x470203
mov eax, dword [ebp - 0x10]
movzx esi, byte [eax + ebx - 1]
cmp esi, 0x41
jl 0x4701d1
cmp esi, 0x5a
jg 0x4701d1
lea eax, [ebp - 0x14]
lea edx, [esi + 0x20]
call fcn.004043d0
mov eax, dword [ebp - 0x14]
mov edx, 0x470334
call fcn.004045f4
jne 0x4701f0
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004044f4
jmp 0x470203
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004044f4
dec ebx
test ebx, ebx
jg 0x470187
mov eax, dword [ebp - 0x18]
mov edx, 0x470340
call fcn.004045f4
jne 0x470227
cmp dword [ebp - 0x20], 0
jne 0x470227
cmp dword [ebp - 0x2c], 0
jbe 0x470227
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 0x18]
mov edx, 0x470350
call fcn.004045f4
je 0x470254
mov eax, dword [ebp - 0x18]
mov edx, 0x470360
call fcn.004045f4
je 0x470254
mov eax, dword [ebp - 0x18]
mov edx, 0x470370
call fcn.004045f4
jne 0x470263
cmp dword [ebp - 0x20], 0
je 0x470263
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xffffffff
or ebx, 0xffffffff
mov eax, dword [ebp - 0x18]
mov edx, 0x470380
call fcn.004045f4
jne 0x47027d
cmp dword [ebp - 0x20], 0
jne 0x47027d
xor ebx, ebx
test ebx, ebx
je 0x47028e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x16c]
push eax
push edi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4700b3
push edi
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x4702c0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4702c0
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4702cd
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4702fa
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040420c
lea eax, [ebp - 4]
call fcn.004041e8
ret