Function at 0x40e380
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x4bc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x4b2
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 6
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf0
push eax
call ebp
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.0040ddb0
mov ebx, dword [esp + 0x4d0]
push 0
push 0
push 0x101c
push ebx
call ebp
push 0
push 0
push 0x1009
push ebx
call ebp
mov edx, dword [0x554e0c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2c8]
mov dword [esp + 0x2c4], edx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x2c4]
push eax
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
sub eax, edi
push ecx
push 0
sub eax, 0x14
push 0x1061
push ebx
mov dword [esp + 0x48], 0x554e0c
mov dword [esp + 0x4c], 0x100
mov dword [esp + 0x44], eax
call ebp
lea edx, [esp + 0x74]
lea eax, [esp + 0x2c4]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40e5b7
mov edi, dword [0x547570]
lea ecx, [esp + 0xa0]
test ecx, ecx
mov dword [esp + 0x10], edi
jne 0x40e499
xor ebx, ebx
jmp 0x40e4ad
lea edx, [esp + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x10]
mov ebx, eax
cmp dword [edi - 0xc], 1
jg 0x40e4b8
cmp ebx, dword [edi - 4]
jle 0x40e4d3
lea ecx, [esp + 0x10]
call fcn.004124c0
push ebx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x40e502
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
lea esi, [esp + 0xa0]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
push 0x548138
push eax
call fcn.005322f9
add esp, 8
test eax, eax
je 0x40e56d
mov ecx, dword [esp + 0x10]
push 0x548134
push ecx
call fcn.005322f9
add esp, 8
test eax, eax
je 0x40e56d
mov edi, dword [esp + 0x14]
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x4d0]
push ecx
push eax
push 0x104d
push edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x5c], 7
call ebp
inc edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40e59c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e59c
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e480
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4bc
ret 8