Function at 0x403916
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov dword [ebp - 0x268], ecx
mov eax, dword [ebp - 0x268]
mov dword [eax + 0x1c], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x2800
mov ecx, dword [ebp - 0x258]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
push 0x4181ec
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0xffffffff
jne 0x4039d3
mov byte [ebp - 0x264], 0x68
push 1
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.00407523
jmp 0x403b62
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x68
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x258]
sub edx, 0x208
cmp dword [ebp - 0xc], edx
jbe 0x403a18
mov eax, dword [ebp - 0x258]
add eax, 0x208
mov dword [ebp - 0x258], eax
push 0x42
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 8], eax
push 0x4181f4
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x403a4b
push 0x4181f8
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x403a50
jmp 0x403b10
mov eax, dword [ebp - 0x254]
and eax, 0x10
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x25c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
push 4
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 4
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, 8
mov dword [ebp - 0xc], ecx
push 8
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, 8
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4039e0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.00407523
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret 4