Function at 0x404c46
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0xe80
lea ebp, [esp - 4]
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp + 0xe80], eax
push 0x40
mov eax, 0x4b2b69
call fcn.004471be
xor ebx, ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov esi, 0x206
push esi
lea eax, [ebp + 0xa72]
push ebx
push eax
mov dword [ebp - 4], ebx
mov word [ebp + 0xa70], bx
call fcn.00447440
push esi
lea eax, [ebp + 0x45a]
push ebx
push eax
mov word [ebp + 0x458], bx
call fcn.00447440
add esp, 0x18
push str.Dict
call fcn.0040361f
mov ecx, eax
call fcn.00408f78
push eax
lea eax, [ebp + 0xa70]
push 0x4b9de0
push eax
call fcn.004479ae
push esi
lea eax, [ebp + 0xc7a]
push ebx
push eax
mov word [ebp + 0xc78], bx
call fcn.00447440
push esi
lea eax, [ebp + 0x252]
push ebx
push eax
mov word [ebp + 0x250], bx
call fcn.00447440
push esi
lea eax, [ebp + 0x86a]
push ebx
push eax
mov word [ebp + 0x868], bx
call fcn.00447440
lea eax, [ebp + 0xa70]
push eax
lea eax, [ebp + 0x868]
push str._s.
push eax
call fcn.004479ae
add esp, 0x40
lea eax, [ebp]
push eax
lea eax, [ebp + 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x404e40
mov edi, str..dcel
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x404e40
cmp word [ebp + 0x2c], 0x2e
je 0x404d4c
cmp word [ebp + 0x2e], bx
je 0x404d4c
cmp word [ebp + 0x2e], 0x2e
jne 0x404d7b
cmp word [ebp + 0x30], bx
je 0x404d4c
test byte [ebp], 0x10
jne 0x404d4c
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0xc78]
push 0x4b9e74
push eax
call fcn.004479ae
lea eax, [ebp + 0xc78]
push eax
call fcn.00447da5
lea eax, [ebp + 0xc78]
push edi
push eax
call fcn.004474ba
add esp, 0x18
test eax, eax
je 0x404d4c
push esi
lea eax, [ebp + 0x662]
push ebx
push eax
mov word [ebp + 0x660], bx
call fcn.00447440
lea eax, [ebp + 0x660]
push eax
lea eax, [ebp + 0xc78]
push eax
call fcn.0040acbb
lea eax, [ebp + 0x660]
push edi
push eax
call fcn.004472c8
add esp, 0x1c
test eax, eax
jne 0x404d4c
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x250]
push 0x4b9e74
push eax
call fcn.004479ae
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004021c0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00404bf1
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401b15
jmp 0x404d4c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.0041bca1
jmp 0x404ea3
lea ecx, [ebp - 0x14]
call fcn.00403545
cmp dword [eax + 0x18], 8
jb 0x404e6d
mov eax, dword [eax + 4]
jmp 0x404e70
add eax, 4
push eax
lea eax, [ebp + 0xa70]
push eax
lea eax, [ebp + 0x458]
push 0x4b9e68
push eax
call fcn.004479ae
mov ecx, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp + 0x458]
push eax
call fcn.00404618
lea ecx, [ebp - 0x14]
call fcn.00403566
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.0041bca1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040b5af
test al, al
je 0x404e5a
lea ecx, [ebp - 0x24]
call fcn.00404585
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe80]
xor ecx, ebp
call fcn.004471af
add ebp, 0xe84
leave
ret