Function at 0x402e49
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push esi
mov dword [ebp - 0x288], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__wcsdup]
add esp, 4
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + edx*2 - 2]
xor edx, edx
mov dx, word [str._STATIC]
cmp ecx, edx
jne 0x402ebc
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2], 0
jmp 0x402e8b
lea eax, [ebp - 0x280]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 8
test eax, eax
je 0x402ee8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
jmp 0x403099
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [esi + eax + 1]
lea eax, [edx + edx + 6]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
xor edx, edx
mov dx, word [str._STATIC]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x40650c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [0x406618], eax
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0xffffffff
je 0x403005
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.MSVCRT.dll__wcsdup]
add esp, 4
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402ff8
lea edx, [ebp - 0x230]
mov dword [ebp - 4], edx
mov eax, dword [0x406618]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [0x406618]
mov ecx, dword [ebp - 0x288]
lea edx, [ecx + eax*2 + 2]
push edx
call fcn.0040309e
add esp, 8
test eax, eax
jge 0x402ff6
mov eax, dword [ebp - 0x288]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsdup]
add esp, 4
mov dword [ebp - 0x288], eax
jmp 0x402f89
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x288], 0
je 0x403089
mov eax, dword [ebp - 0x288]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 1]
lea eax, [edx + edx + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dx, word [str._STATIC]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2 + 2], 0
mov edx, dword [ebp - 0x288]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret