Function at 0x59b250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622853
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push esi
push edi
mov eax, dword [0x6a5418]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
call fcn.0059b0d0
add esp, 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov ecx, edi
mov esi, 1
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00448740
mov ebx, dword [ebp - 0x18]
cmp byte [ebx + 0xd], 0
jne 0x59b590
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x10]
jb 0x59b590
cmp ebx, dword [edi]
je 0x59b590
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp esi, eax
jne 0x59b37a
cmp dword [ebp + 0x10], esi
push 0
cmovb esi, dword [ebp + 0x10]
push 0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
push eax
push 0x10
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0059a5e0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x90]
push esi
push edi
push edi
mov byte [ebp - 4], 1
call fcn.005b7dc0
lea ecx, [ebp - 0x94]
call fcn.0059a940
lea ecx, [ebp - 0x58]
call fcn.0059aa80
cmp esi, dword [ebx + 0x20]
jne 0x59b362
push 0xfed0c
push esi
push edi
call fcn.0060e4e0
add esp, 0xc
cmp eax, dword [ebx + 0x28]
jne 0x59b51c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x59b58e
mov dword [eax], esi
jmp 0x59b58e
lea ecx, [eax + esi]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
test ecx, ecx
je 0x59b3fa
cmp ecx, 0x7fffffff
ja 0x59b5f5
cmp ecx, 0x1000
jb 0x59b3d1
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x59b5fa
push eax
call fcn.0059852b
add esp, 4
test eax, eax
je 0x59b5ff
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x59b3dc
push ecx
call fcn.0059852b
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push esi
lea edi, [esi + eax]
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
call fcn.005cfeb0
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x14]
push 0
push 0
push dword [ebx + 0x1c]
mov dword [ebp - 4], 3
push dword [ebx + 0x18]
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x20]
mov eax, dword [ebp - 0x14]
push esi
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
lea eax, [ecx + 0x18]
push eax
lea eax, [ecx + 8]
push 0x10
push eax
lea ecx, [ebp - 0x100]
call fcn.0059a5e0
push dword [ebx + 0x20]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 5
push esi
push esi
call fcn.005b7dc0
lea ecx, [ebp - 0x100]
call fcn.0059a940
lea ecx, [ebp - 0xc4]
call fcn.0059aa80
mov eax, dword [ebx + 0x20]
push dword [ebx + 0x24]
add eax, esi
push eax
push dword [ebp + 8]
call fcn.0060e2c0
mov ecx, dword [ebx + 0x20]
add esp, 0xc
cmp eax, ecx
je 0x59b4d5
test esi, esi
je 0x59b4bc
sub edi, esi
cmp edi, 0x1000
jb 0x59b4b2
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x59b5ff
mov esi, ecx
push edi
push esi
call fcn.0059851d
add esp, 8
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xfed0c
push dword [ebx + 0x24]
lea eax, [esi + ecx]
push eax
call fcn.0060e4e0
add esp, 0xc
cmp eax, dword [ebx + 0x28]
je 0x59b535
test esi, esi
je 0x59b51c
sub edi, esi
cmp edi, 0x1000
jb 0x59b512
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x59b5ff
mov esi, ecx
push edi
push esi
call fcn.0059851d
add esp, 8
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 0x24]
cmp dword [ebp + 0x10], eax
cmovb eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x20]
add eax, esi
push eax
push dword [ebp + 0xc]
call fcn.005cf880
mov edx, dword [ebp + 0x14]
add esp, 0xc
test edx, edx
je 0x59b564
mov eax, dword [ebx + 0x24]
cmp dword [ebp + 0x10], eax
cmovb eax, dword [ebp + 0x10]
mov dword [edx], eax
test esi, esi
je 0x59b58e
sub edi, esi
cmp edi, 0x1000
jb 0x59b584
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x59b5ff
mov esi, ecx
push edi
push esi
call fcn.0059851d
add esp, 8
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0043ad50
call fcn.0043a500
call fcn.005d9542
int3