Function at 0x40151f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x40b034]
xor eax, esp
mov dword [esp + 0x2c8], eax
mov eax, dword [ebp + 8]
mov dword [esp], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], ecx
call fcn.004026d3
mov ebx, dword [sym.imp.MSVCR100.dll_wcslen]
mov esi, str.___
push esi
call ebx
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x4c]
call fcn.00401e94
push 0x250
lea eax, [esp + 0x84]
push 0
push eax
call dword [sym.imp.MSVCR100.dll_memset]
mov eax, dword [esp + 0x54]
add esp, 0xc
cmp dword [esp + 0x5c], 8
jae 0x4015ae
lea eax, [esp + 0x48]
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x4015ee
xor ebx, ebx
push 1
xor edi, edi
lea esi, [esp + 0x4c]
call fcn.00402702
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004080ae
mov esp, ebp
pop ebp
ret 0x14
push dword [esp + 0x10]
lea eax, [esp + 0x30]
call fcn.004026d3
lea eax, [esp + 0xac]
push eax
call ebx
pop ecx
lea ecx, [esp + 0xac]
mov edi, eax
push ecx
lea eax, [esp + 0x30]
call fcn.00401e94
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x401628
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x401665
push 1
xor edi, edi
lea esi, [esp + 0x30]
call fcn.00402702
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4015ee
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4015c6
lea eax, [esp + 0xac]
push eax
call ebx
mov ebx, dword [esp + 0x10]
mov edi, eax
pop ecx
lea eax, [esp + 0xac]
push eax
mov eax, ebx
call fcn.00402376
test al, al
je 0x4016ad
cmp dword [ebx + 0x14], 8
jb 0x401693
mov eax, dword [ebx]
jmp 0x401695
mov eax, ebx
lea ecx, [esp + 0xac]
sub ecx, eax
sar ecx, 1
push edi
push ecx
mov eax, ebx
mov ecx, ebx
call fcn.00402425
jmp 0x4016f9
mov eax, dword [esp + 0xc]
push 0
mov ebx, edi
call fcn.004025ea
test al, al
je 0x4016f5
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x4016cc
mov eax, dword [esi]
jmp 0x4016ce
mov eax, esi
lea ebx, [edi + edi]
push ebx
lea ecx, [esp + 0xb0]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edi
jb 0x4016ef
mov esi, dword [esi]
xor eax, eax
mov word [ebx + esi], ax
mov ebx, dword [esp + 0xc]
push 0x5f
pop edi
push 1
lea eax, [esp + 0x14]
push eax
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00401df6
mov esi, eax
mov dword [esp + 0x10], edi
push 1
lea eax, [esp + 0x14]
lea edi, [esi + 1]
push eax
mov eax, edi
mov ecx, ebx
call fcn.00401df6
sub eax, esi
dec eax
push eax
push edi
push ebx
lea esi, [esp + 0x70]
call fcn.00401b59
mov ebx, eax
mov eax, dword [esp + 0x24]
call fcn.0040225c
push 1
xor edi, edi
call fcn.00402702
mov edi, dword [sym.imp.MSVCR100.dll_wcstoul]
push 0xa
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xb6]
push eax
call edi
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 0xc
cmp word [esp + 0xac], 0x31
push 0x5f
sete al
mov dword [ecx], eax
call fcn.00401ad1
push 0xa
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + eax*2 + 0xb6]
push eax
call edi
mov ecx, dword [esp + 0x28]
add esp, 0xc
push dword [esp + 0x14]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [esp + 0x30]
call fcn.00402702
jmp 0x4015c8