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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe7c
mov eax, dword [0x541280]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x47af25
test edi, edi
je 0x47af25
mov ecx, edx
push esi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ac84
sub ecx, esi
sar ecx, 1
jne 0x47aca8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e339
mov esp, ebp
pop ebp
ret
push edx
lea ecx, [ebp - 0x660]
xor esi, esi
call fcn.00458e50
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x47acef
cmp word [ebp + eax*2 - 0x65e], 0x5c
je 0x47acef
push 1
lea eax, [ebp - 0xe7c]
mov dword [ebp - 0xe7c], 0x5c
push eax
lea ecx, [ebp - 0x660]
call fcn.00459de0
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0x664], esi
mov dword [ebp - 0xa6c], ecx
xor ecx, ecx
push eax
lea eax, [ebp - 0x65c]
mov word [ebp - 0xa68], cx
push eax
lea ecx, [ebp - 0xa6c]
call fcn.00447200
push 1
push 0x53ab14
lea ecx, [ebp - 0xa6c]
call fcn.00459de0
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0xa68]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xe7c], eax
cmp eax, 0xffffffff
je 0x47af0b
test byte [ebp - 0x254], 0x10
je 0x47ae5a
mov ecx, 0x534b18
lea eax, [ebp - 0x228]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ad96
test dx, dx
je 0x47ad92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ad96
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ad70
xor eax, eax
jmp 0x47ad9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47ae5a
mov ecx, 0x53ab18
lea eax, [ebp - 0x228]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47add6
test dx, dx
je 0x47add2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47add6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47adb0
xor eax, eax
jmp 0x47addb
sbb eax, eax
or eax, 1
test eax, eax
je 0x47ae5a
push ebx
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x65c]
push eax
call edi
add esp, 0x10
test al, al
je 0x47aeea
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0xe78]
call fcn.00458ed0
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
jmp 0x47ae20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ae20
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe78]
call fcn.00459de0
push ebx
lea eax, [ebp - 0xe74]
push edi
push eax
call fcn.0047ac50
add esp, 0xc
add esi, eax
jmp 0x47aeea
mov ecx, 0x534b18
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ae8b
test dx, dx
je 0x47ae87
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ae8b
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ae65
xor eax, eax
jmp 0x47ae90
sbb eax, eax
or eax, 1
test eax, eax
je 0x47aeea
mov ecx, 0x53ab18
lea eax, [ebp - 0x228]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47aec6
test dx, dx
je 0x47aec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47aec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47aea0
xor eax, eax
jmp 0x47aecb
sbb eax, eax
or eax, 1
test eax, eax
je 0x47aeea
push ebx
push 1
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x65c]
push eax
call edi
add esp, 0x10
test al, al
je 0x47aeea
inc esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0xe7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47ad52
mov eax, dword [ebp - 0xe7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e339
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0045e339
mov esp, ebp
pop ebp
ret