Function at 0x40683d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc7c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 0x184
push dword [0x41ec90]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00401f45
mov esi, dword [ebp + 8]
push 0x5c
pop edi
cmp word [esi], di
jne 0x406954
movzx eax, word [esi + 2]
cmp ax, bx
je 0x406887
cmp ax, di
jne 0x406954
lea eax, [esi + 4]
push edi
push eax
call fcn.00406fd1
pop ecx
pop ecx
cmp eax, ebx
jne 0x4068b4
xor eax, eax
cmp word [esi + 2], di
setne al
dec eax
and eax, esi
push eax
call fcn.00406658
pop ecx
call fcn.00402007
jmp 0x406acb
cmp word [eax + 2], bx
jne 0x406954
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x86c]
push eax
call esi
lea eax, [ebp - 0x86c]
push eax
call fcn.0040225b
call fcn.0040660f
push ebx
call fcn.00406658
pop ecx
pop ecx
cmp dword [0x41eca4], ebx
je 0x406ac8
call fcn.0040662b
jmp 0x40693e
push eax
lea eax, [ebp - 0xa74]
push eax
call esi
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0xa74]
push eax
call fcn.004089a6
add esp, 0xc
test eax, eax
jne 0x406939
lea eax, [ebp - 0xa74]
push eax
call fcn.00406784
pop ecx
call fcn.0040663d
cmp eax, ebx
jne 0x4068fa
call fcn.00406652
mov dword [ebp - 4], eax
call fcn.00406626
jmp 0x406ac8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
push dword [ebp - 0x20c]
call fcn.00408c32
pop ecx
test eax, eax
je 0x4069b3
mov ax, word [ebp - 0x20a]
cmp ax, 0x3a
je 0x406986
cmp ax, bx
jne 0x4069b3
cmp ax, bx
jne 0x406992
push 0x4118ac
jmp 0x4069a6
cmp ax, 0x3a
jne 0x4069b3
cmp word [ebp - 0x208], bx
jne 0x4069b3
push 0x411408
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00407442
mov ebx, eax
push 0x5c
push ebx
call fcn.004073da
add esp, 0xc
mov esi, eax
push ebx
test esi, esi
jne 0x4069e0
call fcn.00407408
pop ecx
xor eax, eax
jmp 0x406acb
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call edi
add esi, 2
push esi
lea eax, [ebp - 0xc7c]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x664]
push str._s_s
push eax
call esi
push ebx
call fcn.00407408
add esp, 0x14
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4069d9
test byte [ebp - 0x45c], 0x10
je 0x406aaf
lea eax, [ebp - 0x430]
push 0x411638
push eax
call fcn.00408ba9
pop ecx
pop ecx
test eax, eax
je 0x406aaf
lea eax, [ebp - 0x430]
push 0x411630
push eax
call fcn.00408ba9
pop ecx
pop ecx
test eax, eax
je 0x406aaf
test byte [ebp - 0x45c], 6
jne 0x406aaf
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x664]
push 0x411890
push eax
call esi
lea eax, [ebp - 0x664]
push eax
call fcn.00401f4a
add esp, 0x14
inc dword [ebp - 4]
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406a41
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret