Function at 0x4011d0
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x41d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x3c4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.00406480
add esp, 8
cmp dword [0x41f1cc], 0
je 0x401224
call fcn.004010e0
nop
push 8
call fcn.0040840d
add esp, 4
mov dword [0x41f1cc], eax
push 8
push 0
mov edx, dword [0x41f1cc]
push edx
call fcn.00403f00
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00401df0
add esp, 0xc
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.00401ca0
add esp, 0xc
lea ecx, [ebp - 0x3a0]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3bc], eax
cmp dword [ebp - 0x3bc], 0xffffffff
je 0x401306
mov eax, dword [ebp - 0x3a0]
and eax, 0x10
jne 0x4012e0
push 0
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x374]
push edx
call fcn.00401890
add esp, 0xc
test eax, eax
jne 0x4012e0
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebp - 0x25c]
push ecx
push str._s_s
push 0x12c
lea edx, [ebp - 0x130]
push edx
call fcn.00401060
add esp, 0x14
jmp 0x4012f8
lea eax, [ebp - 0x3a0]
push eax
mov ecx, dword [ebp - 0x3bc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401290
mov edx, dword [ebp - 0x3bc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0xffffffff
je 0x401521
push 0
mov ecx, dword [ebp - 0x3a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c0], eax
push 0
call fcn.004083d1
add esp, 4
mov edx, dword [ebp - 0x3c0]
add edx, 1
mov eax, 0xffffffff
cmovo edx, eax
push edx
mov ecx, dword [ebp - 0x3b8]
push ecx
call fcn.00406578
add esp, 8
mov dword [ebp - 0x3cc], eax
call fcn.004083be
cmp dword [eax], 0xc
jne 0x401387
jmp 0x401393
mov edx, dword [ebp - 0x3cc]
mov dword [ebp - 0x3b8], edx
cmp dword [ebp - 0x3b8], 0
je 0x40150a
push 0
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x3c0]
push ecx
mov edx, dword [ebp - 0x3b8]
push edx
mov eax, dword [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40150a
mov ecx, dword [ebp - 0x3c0]
cmp ecx, dword [ebp - 0x260]
jne 0x40150a
mov edx, dword [ebp - 0x3a8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3a8], 0
mov dword [ebp - 0x3ac], 0
jmp 0x401410
mov eax, dword [ebp - 0x3ac]
add eax, 1
mov dword [ebp - 0x3ac], eax
cmp dword [ebp - 0x3ac], 0x3e8
jge 0x40150a
cmp dword [ebp - 0x3c4], 1
je 0x40150a
mov dword [ebp - 0x3b4], 0
mov ecx, dword [0x41dec4]
add ecx, dword [ebp - 0x3ac]
movzx edx, byte [ecx]
mov dword [ebp - 0x3b0], edx
jmp 0x40145d
mov eax, dword [ebp - 0x3b4]
add eax, 1
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0x20
jge 0x4014ce
mov ecx, dword [0x41dec4]
add ecx, dword [ebp - 0x3b0]
movzx ecx, byte [ecx]
mov eax, dword [ebp - 0x3b0]
add eax, dword [ebp - 0x3b4]
add eax, dword [ebp - 0x3ac]
cdq
mov esi, 0x3e8
idiv esi
mov eax, dword [0x41dec4]
movzx edx, byte [eax + edx]
imul ecx, edx
add ecx, dword [ebp - 0x3b0]
mov eax, ecx
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x3b0], edx
mov edx, dword [0x41dec4]
add edx, dword [ebp - 0x3b0]
mov eax, dword [ebp - 0x3b4]
mov cl, byte [edx]
mov byte [ebp + eax - 0x3f4], cl
jmp 0x40144e
mov edx, 1
shl edx, 5
mov dword [ebp - 0x3c8], edx
cmp dword [ebp - 0x3c8], 0x21
jae 0x4014e7
jmp 0x4014ed
call fcn.00403269
nop
mov eax, dword [ebp - 0x3c8]
mov byte [ebp + eax - 0x3f4], 0
mov dword [ebp - 0x3c4], 0xffffffff
jmp 0x401401
cmp dword [ebp - 0x3a8], 0
je 0x401521
mov ecx, dword [ebp - 0x3a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp - 0x3a4], 0
je 0x401560
lea edx, [ebp - 0x3a4]
push edx
call fcn.004021e0
add esp, 4
mov eax, dword [ebp - 0x3a4]
push eax
call fcn.004083f2
add esp, 4
mov dword [ebp - 0x3a4], 0
mov ecx, dword [ebp - 0x3a4]
mov dword [ebp - 0x3d0], ecx
jmp 0x40156a
mov dword [ebp - 0x3d0], 0
mov eax, dword [ebp - 0x3c4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403138
mov esp, ebp
pop ebp
ret