Function at 0x403650
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6f4
mov eax, dword [0x418014]
xor eax, esp
mov dword [esp + 0x6f0], eax
imul eax, dword [ebp + 8], 0x15180
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esi + 0x129c]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x4f4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [esp + 0x4fc]
push str..
push 0x104
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4f4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4036fb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6f0]
xor ecx, esp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x40ea10
lea eax, [esp + 0x64]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403736
test dx, dx
je 0x403732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403736
add eax, 4
add ecx, 4
test dx, dx
jne 0x403710
xor eax, eax
jmp 0x40373b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4038a3
mov ecx, 0x40ea14
lea eax, [esp + 0x64]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403776
test dx, dx
je 0x403772
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403776
add eax, 4
add ecx, 4
test dx, dx
jne 0x403750
xor eax, eax
jmp 0x40377b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4038a3
test byte [esp + 0x38], 0x10
je 0x4038a3
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403795
sub eax, edx
sar eax, 1
cmp eax, 0xe
jb 0x4038a3
push 5
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 3
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 3
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov word [esp + 0x1c], ax
lea eax, [esp + 0x2ac]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov word [esp + 0x22], ax
lea eax, [esp + 0x2d0]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov word [esp + 0x2a], ax
xor eax, eax
mov word [esp + 0x28], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.mketools.dll_MkeGetSystimeDiff]
add esp, 0x14
cmp eax, dword [esp + 0x10]
jle 0x4038a3
push dword [esp + 0x14]
lea eax, [esp + 0x2ec]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x410afc
lea eax, [esp + 0x2f8]
push 0x104
push eax
call esi
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x304]
push 0x104
push eax
call esi
lea eax, [esp + 0x30c]
push eax
push 0
call dword [sym.imp.mketools.dll_MkeRemoveDirectory]
add esp, 0x2c
test eax, eax
je 0x4038b7
lea eax, [esp + 0x38]
push eax
push edi
call ebx
test eax, eax
jne 0x403701
mov dword [esp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x6fc]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret 4