Function at 0x40366a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 0x184
push dword [0x43e5d4]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00402b7e
mov edi, dword [ebp + 8]
push 0x5c
pop ebx
cmp word [edi], bx
jne 0x40377d
movzx eax, word [edi + 2]
test ax, ax
je 0x4036b1
cmp ax, bx
jne 0x40377d
lea eax, [edi + 4]
push ebx
push eax
call fcn.0041327a
pop ecx
pop ecx
test eax, eax
jne 0x4036dc
cmp word [edi + 2], bx
push 1
cmove eax, edi
push eax
call fcn.00403d7c
pop ecx
pop ecx
call fcn.00402c43
jmp 0x4038f7
cmp word [eax + 2], si
jne 0x40377d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x660]
push eax
call edi
lea eax, [ebp - 0x660]
push eax
call fcn.00402256
call fcn.00403cfb
push esi
push esi
call fcn.00403d7c
add esp, 0xc
cmp dword [0x43e5e8], esi
je 0x4038f5
call fcn.00403cd4
jmp 0x403768
push eax
lea eax, [ebp - 0xa70]
push eax
call edi
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0xa70]
push eax
call fcn.00418284
add esp, 0xc
test eax, eax
jne 0x403763
lea eax, [ebp - 0xa70]
push eax
call fcn.00403c11
pop ecx
call fcn.00403ce6
test eax, eax
jne 0x403724
call fcn.00403cce
mov esi, eax
call fcn.00403cc9
jmp 0x4038f5
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x208]
call fcn.004181a0
pop ecx
test eax, eax
je 0x4037db
mov ax, word [ebp - 0x206]
push 0x3a
pop ecx
cmp ax, cx
je 0x4037af
test ax, ax
jne 0x4037db
test ax, ax
jne 0x4037bb
push 0x42d540
jmp 0x4037ce
cmp ax, cx
jne 0x4037db
cmp word [ebp - 0x204], si
jne 0x4037db
push 0x42d42c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x208]
push eax
call fcn.00416a45
mov edi, eax
push ebx
push edi
call fcn.004135ac
add esp, 0xc
mov ebx, eax
push edi
test ebx, ebx
jne 0x403807
call fcn.00416f2b
pop ecx
xor eax, eax
jmp 0x4038f7
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 2]
push eax
lea eax, [ebp - 0xc78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xc78]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x868]
push 0x42d548
push eax
call ebx
push edi
call fcn.00416f2b
add esp, 0x14
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403800
test byte [ebp - 0x458], 0x10
je 0x4038dc
lea eax, [ebp - 0x42c]
push 0x42d558
push eax
call fcn.004181b6
pop ecx
pop ecx
test eax, eax
je 0x4038dc
lea eax, [ebp - 0x42c]
push 0x42d55c
push eax
call fcn.004181b6
pop ecx
pop ecx
test eax, eax
je 0x4038dc
test byte [ebp - 0x458], 6
jne 0x4038dc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x868]
push str._s_s
push eax
call ebx
lea eax, [ebp - 0x868]
push eax
call fcn.00402b83
add esp, 0x14
inc esi
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403870
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret