Function at 0x59b140
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x697dfe
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
push 0
mov ebp, ecx
push 0x6d753c
call fcn.00646940
mov esi, dword [esp + 0xc4]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
add esp, 8
lea eax, [esp + 0x1c]
lea edi, [ebp + 0x4188]
push 0
push eax
push 4
push edi
push esi
call ebx
mov edi, dword [edi]
test edi, edi
je 0x59b3b0
lea ecx, [edi + edi*4]
shl ecx, 4
add ecx, 4
push ecx
call fcn.00673b05
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0xb4], 0
je 0x59b1e1
push fcn.0043e8f0
mov dword [eax], edi
push fcn.0043e880
add eax, 4
push edi
push 0x50
push eax
mov dword [esp + 0x38], eax
call fcn.00674499
mov eax, dword [esp + 0x24]
jmp 0x59b1e3
xor eax, eax
mov dword [esp + 0xb4], 0xffffffff
lea edx, [esp + 0x1c]
mov dword [ebp + 0x418c], eax
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push esi
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59b3b0
lea ecx, [eax*4]
push ecx
call fcn.00673b05
mov ecx, dword [esp + 0x18]
add esp, 4
xor edi, edi
mov dword [esp + 0x20], eax
test ecx, ecx
jle 0x59b26a
mov dword [esp + 0x10], eax
push 0x104
call fcn.00673b05
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x104
push eax
push esi
mov dword [edx], eax
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x59b233
mov eax, dword [ebp + 0x4188]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], edi
jle 0x59b378
mov dword [esp + 0x10], 0x64
jmp 0x59b295
mov esi, dword [esp + 0xbc]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x32]
push 2
push eax
push esi
call ebx
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x22]
push 2
push edx
push esi
call ebx
movsx eax, word [esp + 0x2a]
mov ecx, dword [esp + 0x20]
push 0
push 0x80
push 3
mov edx, dword [ecx + eax*4]
push 0
push 0
push SysReAllocString
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
xor ebx, ebx
mov esi, eax
cmp word [esp + 0x1a], bx
jle 0x59b301
mov eax, dword [ebp + 0x418c]
mov ecx, edi
push esi
add ecx, eax
call fcn.0043f7e0
movsx eax, word [esp + 0x1a]
inc ebx
cmp ebx, eax
jl 0x59b2e7
mov ecx, dword [ebp + 0x418c]
mov edx, dword [0x6e2664]
push esi
mov dword [edi + ecx + 0x28], edx
mov eax, dword [ebp + 0x418c]
mov edx, dword [edi + eax]
lea ecx, [edi + eax]
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
cdq
idiv dword [ebp + 0x4188]
mov ebx, eax
lea eax, [esp + 0x2c]
push ebx
push 0x6d7518
push eax
call fcn.0067429f
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.00646940
add esp, 0x14
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x4188]
inc eax
add esi, 0x64
add edi, 0x50
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
jl 0x59b288
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x59b3a3
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
push edx
call fcn.006713a0
add esp, 4
mov dword [esi], 0
mov eax, dword [esp + 0x14]
inc edi
add esi, 4
cmp edi, eax
jl 0x59b386
mov eax, dword [esp + 0x20]
push eax
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4