Function at 0x4046fc
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x4105f0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov edi, 0x104
lea eax, [esp + 0x158]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.0040dd80
add esp, 0xc
mov dword [esp + 0xc], edi
lea eax, [esi + 0x12c]
mov edx, edi
lea ecx, [esp + 0x158]
push eax
call fcn.0040302a
test eax, eax
js 0x4047a7
push 0x402bcc
lea ecx, [esp + 0x15c]
call fcn.0040305d
test eax, eax
js 0x4047a7
push ebx
push ebx
push 0x184
push 0x43
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4047be
push ebx
push 1
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406053
mov esp, ebp
pop ebp
ret
test byte [esp + 0x18], 1
je 0x4047db
push 0x402bd4
lea ecx, [esp + 0x48]
call fcn.0040305d
test eax, eax
js 0x404872
lea eax, [esp + 0x44]
push eax
push ebx
push 0x180
push 0x43
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4047be
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x234], ebx
jle 0x404960
lea eax, [esi + 0x12c]
mov edx, 0x104
push eax
lea ecx, [esp + 0x15c]
call fcn.0040302a
test eax, eax
js 0x4047a7
lea edi, [esp + 0x158]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40483e
sub edi, ecx
lea ecx, [esp + 0x158]
add ecx, edi
mov byte [ecx], 0x5c
inc ecx
inc edi
cmp edi, dword [esp + 0xc]
jae 0x4047a7
mov eax, dword [esi + 0x230]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov eax, dword [eax + ebx*4]
jmp 0x404892
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4047a7
cmp dl, 0x2e
je 0x404898
cmp edi, dword [esp + 0xc]
jae 0x4047a7
mov byte [ecx], dl
inc ecx
inc eax
inc edi
mov dl, byte [eax]
test dl, dl
jne 0x40487e
cmp edi, dword [esp + 0xc]
jae 0x4047a7
cmp byte [eax], 0x2e
je 0x4048c4
mov eax, dword [esp + 0x10]
add eax, 8
cmp ecx, eax
jbe 0x4048bf
mov ecx, eax
mov eax, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0xc], eax
mov eax, 0x402bdc
mov edx, 0x104
push eax
sub edx, edi
call fcn.0040302a
test eax, eax
js 0x4047a7
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4048fb
cmp dword [esi + 0x18], 0
je 0x40496e
jmp 0x404953
lea eax, [esp + 0x44]
push eax
push 0
push 0x18f
push 0x43
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 0xffffffff
je 0x40492c
push eax
push 1
push 0x185
push 0x43
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x40493c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
cmp dword [esi + 0x18], 0
je 0x404968
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4048fb
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc ebx
cmp ebx, dword [esi + 0x234]
jl 0x404814
xor eax, eax
inc eax
jmp 0x4047a9
lea edx, [esp + 0x44]
jmp 0x404975
lea edx, [esp + 0x158]
push 0x24
pop ecx
call fcn.00403242
int3