Function at 0x40479e
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 [0x41ea28]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00403d43
mov edi, dword [ebp + 8]
push 0x5c
pop ebx
cmp word [edi], bx
jne 0x4048b1
movzx eax, word [edi + 2]
test ax, ax
je 0x4047e5
cmp ax, bx
jne 0x4048b1
lea eax, [edi + 4]
push ebx
push eax
call fcn.004061f9
pop ecx
pop ecx
test eax, eax
jne 0x404810
cmp word [edi + 2], bx
push 1
cmove eax, edi
push eax
call fcn.00404eb0
pop ecx
pop ecx
call fcn.00403e08
jmp 0x404a2b
cmp word [eax + 2], si
jne 0x4048b1
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.00403183
call fcn.00404e2f
push esi
push esi
call fcn.00404eb0
add esp, 0xc
cmp dword [0x41ea3c], esi
je 0x404a29
call fcn.00404e08
jmp 0x40489c
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.0040b5a8
add esp, 0xc
test eax, eax
jne 0x404897
lea eax, [ebp - 0xa70]
push eax
call fcn.00404d45
pop ecx
call fcn.00404e1a
test eax, eax
jne 0x404858
call fcn.00404e02
mov esi, eax
call fcn.00404dfd
jmp 0x404a29
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x208]
call fcn.0040b4c4
pop ecx
test eax, eax
je 0x40490f
mov ax, word [ebp - 0x206]
push 0x3a
pop ecx
cmp ax, cx
je 0x4048e3
test ax, ax
jne 0x40490f
test ax, ax
jne 0x4048ef
push 0x4146f4
jmp 0x404902
cmp ax, cx
jne 0x40490f
cmp word [ebp - 0x204], si
jne 0x40490f
push 0x41458c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x208]
push eax
call fcn.00408590
mov edi, eax
push ebx
push edi
call fcn.00405eea
add esp, 0xc
mov ebx, eax
push edi
test ebx, ebx
jne 0x40493b
call fcn.00408920
pop ecx
xor eax, eax
jmp 0x404a2b
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 0x4146fc
push eax
call ebx
push edi
call fcn.00408920
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 0x404934
test byte [ebp - 0x458], 0x10
je 0x404a10
lea eax, [ebp - 0x42c]
push 0x41433c
push eax
call fcn.0040b4da
pop ecx
pop ecx
test eax, eax
je 0x404a10
lea eax, [ebp - 0x42c]
push 0x414340
push eax
call fcn.0040b4da
pop ecx
pop ecx
test eax, eax
je 0x404a10
test byte [ebp - 0x458], 6
jne 0x404a10
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.00403d48
add esp, 0x14
inc esi
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4049a4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret