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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8c
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push 0x206
push eax
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82a]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc3c], ax
lea eax, [ebp - 0xc3a]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa34], ax
lea eax, [ebp - 0xa32]
push eax
call fcn.0046a330
add esp, 0x48
lea eax, [ebp - 0x624]
push 0
push 0
push 0
push 0
push 0x104
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0046d27c
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x489a44
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0046982e
add esp, 0x38
cmp dword [ebp + 0x14], 0
je 0x45c789
mov dword [0x4c3f00], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x45c865
lea eax, [ebp - 0xe8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45c9d7
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x45c7c0
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x45c7d9
cmp ax, 0x2e
je 0x45c841
cmp word [ebp - 0xe5c], 0
jne 0x45c7ee
cmp ax, 0x2e
jne 0x45c7ee
cmp cx, ax
je 0x45c841
test byte [ebp - 0xe8c], 0x10
jne 0x45c841
mov eax, dword [ebp - 0xe6c]
cdq
add dword [esi], eax
lea eax, [ebp - 0xe60]
push eax
adc dword [esi + 4], edx
lea eax, [ebp - 0x41c]
push eax
push 0x489a44
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046982e
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.0045f4c0
add esp, 0x1c
inc dword [0x4c3f00]
lea eax, [ebp - 0xe8c]
push eax
push edi
call ebx
test eax, eax
je 0x45c9d0
cmp dword [0x4c2e50], 0
je 0x45c7c0
jmp 0x45c9d0
lea eax, [ebp - 0x41c]
push eax
push 0x489a50
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046982e
add esp, 0x10
lea eax, [ebp - 0xe8c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
test edi, edi
je 0x45c9ea
cmp edi, 0xffffffff
je 0x45c9ea
lea esp, [esp]
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x45c8cd
cmp ax, 0x2e
je 0x45c9b1
cmp word [ebp - 0xe5c], 0
jne 0x45c8e6
cmp ax, 0x2e
jne 0x45c8e6
cmp cx, ax
je 0x45c9b1
test byte [ebp - 0xe8c], 0x10
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x82c]
push eax
je 0x45c936
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x489a5c
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046982e
push 0
push esi
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.0045c660
add esp, 0x2c
jmp 0x45c9b1
push 0x489a44
lea eax, [ebp - 0xa34]
push 0x104
push eax
call fcn.0046982e
add esp, 0x14
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0xe60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x45c9b1
mov eax, dword [ebp - 0xe6c]
add dword [esi], eax
lea eax, [ebp - 0xe60]
push eax
adc dword [esi + 4], 0
lea eax, [ebp - 0x41c]
push eax
push 0x489a44
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046982e
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.0045f4c0
add esp, 0x1c
inc dword [0x4c3f00]
lea eax, [ebp - 0xe8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45c9d0
cmp dword [0x4c2e50], 0
je 0x45c8b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x4c3f00]
push str.CountFiles____NbFiles_d
call fcn.0045f820
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [0x4c3f00]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret