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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x158]
push esi
push 0x12c
xor edi, edi
xor ebx, ebx
push eax
mov dword [ebp - 0x3d4], edi
mov dword [ebp - 0x3dc], ebx
call fcn.0040bd62
add esp, 0xc
cmp dword [0x42b70c], ebx
je 0x40111a
call fcn.0040107e
push 8
call fcn.0040bea8
pop ecx
push 8
push 0
push eax
mov dword [0x42b70c], eax
call fcn.00407ab0
pop ecx
pop ecx
mov edx, esi
lea ecx, [ebp - 0x288]
call fcn.004023ef
pop ecx
push 0
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.00402320
pop ecx
lea eax, [ebp - 0x3d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x4011ca
test byte [ebp - 0x3d0], 0x10
jne 0x401188
push ecx
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x3a4]
call fcn.00402109
pop ecx
test eax, eax
je 0x40119c
lea eax, [ebp - 0x3d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401168
jmp 0x4011c3
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x288]
push eax
push str._s_s
lea eax, [ebp - 0x158]
push 0x12c
push eax
call fcn.00401034
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x80000000
lea eax, [ebp - 0x158]
push eax
call dword [0x42e2f4]
mov esi, eax
cmp esi, 0xffffffff
je 0x401396
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x3e0], eax
call fcn.0040be6c
pop ecx
mov ecx, dword [ebp - 0x3e0]
push 0xffffffffffffffff
pop eax
add ecx, 1
cmovo ecx, eax
push ecx
push 0
call fcn.00409aa3
pop ecx
pop ecx
mov dword [ebp - 0x3e4], eax
call fcn.0040be59
cmp dword [eax], 0xc
je 0x4013b5
mov eax, dword [ebp - 0x3e4]
test eax, eax
je 0x4013b5
push 0
lea ecx, [ebp - 0x28c]
push ecx
push dword [ebp - 0x3e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4013b5
mov eax, dword [ebp - 0x3e0]
cmp eax, dword [ebp - 0x28c]
jne 0x4013b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov ecx, 0x3e8
mov eax, ebx
cmp eax, 1
je 0x401385
movzx esi, byte [ebx + 0x426f60]
xor edi, edi
mov al, byte [esi + 0x426f60]
mov byte [ebp - 0x3d5], al
lea eax, [esi + edi]
add eax, ebx
cdq
idiv ecx
movzx eax, byte [ebp - 0x3d5]
movzx ecx, byte [edx + 0x426f60]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov esi, edx
mov al, byte [esi + 0x426f60]
mov byte [ebp + edi - 0x28], al
inc edi
mov byte [ebp - 0x3d5], al
cmp edi, 0x20
jl 0x4012a1
mov edx, dword [ebp - 0x3e0]
lea eax, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x3d4]
mov byte [ebp - 8], 0
push eax
call fcn.00402d8f
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x3e8], esi
test esi, esi
je 0x401368
push 0
call fcn.0040be6c
mov edi, dword [ebp - 0x3d4]
pop ecx
push 0xffffffffffffffff
mov ecx, esi
pop eax
add ecx, 4
cmovb ecx, eax
push ecx
push edi
call fcn.00409aa3
mov esi, eax
call fcn.0040be59
cmp dword [eax], 0xc
cmovne edi, esi
mov esi, dword [ebp - 0x3e8]
push esi
push edi
mov dword [ebp - 0x3d4], edi
lea eax, [edi + 4]
push eax
call fcn.00407530
add esp, 4
mov dword [edi], esi
mov edx, edi
call fcn.00404a1a
add esp, 0x10
test eax, eax
je 0x4013a7
xor eax, eax
inc eax
jmp 0x401371
mov edi, dword [ebp - 0x3d4]
or eax, 0xffffffff
inc ebx
mov dword [ebp - 0x3dc], eax
mov ecx, 0x3e8
cmp ebx, ecx
jl 0x401283
mov ebx, dword [ebp - 0x3dc]
test edi, edi
je 0x401396
push edi
call fcn.0040be8d
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406768
leave
ret
push edi
call fcn.0040be8d
mov ebx, dword [ebp - 0x3dc]
jmp 0x401395
test esi, esi
je 0x401396
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40138b