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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da564
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword fs:[0x2c]
xor edi, edi
mov ecx, dword [0x66c334]
mov dword [ebp - 4], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x668c4c]
cmp eax, dword [ecx + 0x10]
jg 0x472652
push esi
lea ecx, [ebp - 0x28]
call fcn.0046e3c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.00471a90
mov edx, dword [ebp - 0x18]
mov eax, SysReAllocString
mov esi, dword [0x65dbc0]
sub eax, edx
add esp, 4
cmp eax, esi
jb 0x4726a1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
mov eax, 0x65dbb0
cmp dword [0x65dbc4], 8
cmovae eax, dword [0x65dbb0]
push eax
push edx
push ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x40]
call fcn.0042947e
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov dword [ebp - 0x2b0], esi
cmp edx, 8
jb 0x47233d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472333
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4726a6
push edx
push ecx
call fcn.00599f8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp esi, 0xffffffff
je 0x4725dc
lea ebx, [ebx]
cmp word [ebp - 0x27c], 0x2e
jne 0x47238e
mov ax, word [ebp - 0x27a]
test ax, ax
jne 0x47237a
mov al, 1
jmp 0x472390
cmp ax, 0x2e
jne 0x47238e
cmp word [ebp - 0x278], 0
jne 0x47238e
mov al, 1
jmp 0x472390
xor al, al
test al, al
jne 0x4725b8
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4723a1
sub ecx, edx
mov eax, SysReAllocString
mov edx, dword [ebp - 0x18]
sub eax, edx
sar ecx, 1
cmp eax, ecx
jb 0x4726a1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x27c]
push ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x58]
call fcn.0042947e
mov eax, dword [ebp - 0x2a8]
mov byte [ebp - 4], 3
test al, 0x10
je 0x4724c5
mov ecx, dword [ebp + 0x44]
test cl, cl
je 0x47240d
test eax, 0x400
jne 0x47257a
mov eax, dword [ebp + 0x40]
mov esi, dword [ebp + 0x38]
test al, al
je 0x472469
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0x2b4], esi
mov byte [ebp - 0x2ac], 1
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
test ecx, ecx
je 0x4726ab
mov eax, dword [ecx]
lea edx, [ebp - 0x2b4]
push edx
lea edx, [ebp - 0x2ac]
push edx
lea edx, [ebp - 0x2bc]
push edx
lea edx, [ebp - 0x58]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x44]
mov edi, eax
mov eax, dword [ebp + 0x40]
cmp byte [ebp + 0x3c], 0
je 0x472574
cmp edi, 2
je 0x472574
cmp edi, 1
je 0x472574
push ecx
push eax
push 1
push esi
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x2c8], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4724af
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.00472220
add esp, 0x40
jmp 0x472572
cmp dword [0x65dbc4], 8
mov eax, 0x65dbb0
mov esi, dword [ebx + 0x14]
mov edx, ebx
cmovae eax, dword [0x65dbb0]
mov ecx, dword [ebx + 0x10]
cmp esi, 8
jb 0x4724e7
mov edx, dword [ebx]
cmp ecx, dword [0x65dbc0]
jne 0x4724fe
push ecx
push eax
push edx
call fcn.004093fc
add esp, 0xc
test eax, eax
je 0x47251f
mov ecx, ebx
cmp esi, 8
jb 0x472507
mov ecx, dword [ebx]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x472574
mov ecx, dword [ebp - 0x28c]
xor eax, eax
or eax, dword [ebp - 0x288]
mov edx, dword [ebp + 0x38]
mov dword [ebp - 0x2c0], ecx
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0x2b4], edx
mov byte [ebp - 0x2ac], 0
mov dword [ebp - 0x2c4], eax
test ecx, ecx
je 0x4726ab
mov eax, dword [ecx]
lea edx, [ebp - 0x2b4]
push edx
lea edx, [ebp - 0x2ac]
push edx
lea edx, [ebp - 0x2c4]
push edx
lea edx, [ebp - 0x58]
push edx
call dword [eax + 8]
mov edi, eax
mov esi, dword [ebp - 0x2b0]
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4725b8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4725ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4726a6
push edx
push ecx
call fcn.00599f8e
add esp, 8
cmp edi, 1
je 0x4725d3
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x472360
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4725e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47261c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472612
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4726b0
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x472634
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
push 0x668c4c
call fcn.0059a45b
add esp, 4
cmp dword [0x668c4c], 0xffffffff
jne 0x47227d
push 3
push 0x5edef0
mov ecx, 0x65dbb0
mov byte [ebp - 4], 1
call fcn.004049aa
push 0x5e8c80
call fcn.0059a313
push 0x668c4c
mov byte [ebp - 4], 0
call fcn.0059a411
add esp, 8
jmp 0x47227d
call fcn.00404949
call fcn.005a1930
call fcn.0059b7c4
call fcn.005a1930
int3