Function at 0x59ba90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x4168]
test eax, eax
jne 0x59bb9a
mov ecx, dword [0x818794]
push ebx
call fcn.0046c9d0
mov ebx, dword [0x8186ec]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
lea edi, [ebx + 0x14]
push eax
mov ecx, edi
call fcn.0059fe90
mov edi, dword [edi + 4]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x59bae6
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x59bae6
lea eax, [esp + 0x10]
jmp 0x59baee
mov dword [esp + 0x14], edi
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x18]
cmp eax, ecx
pop ebx
je case.0x59bba7.4
add eax, 0x10
test eax, eax
je case.0x59bba7.4
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x59bb13
mov eax, 0x6a3560
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
test eax, eax
mov dword [esi + 0x4168], eax
je case.0x59bba7.4
mov eax, dword [esi + 0x40c8]
mov edx, eax
imul edx, eax
shl edx, 2
push edx
call fcn.00673b05
mov edx, dword [esi + 0x4168]
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
add esp, 4
mov dword [esi + 0x416c], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push eax
push 4
push ecx
push edx
call edi
mov eax, dword [esi + 0x40c8]
lea ecx, [esp + 0x14]
mov edx, eax
push 0
imul edx, eax
mov eax, dword [esi + 0x416c]
push ecx
mov ecx, dword [esi + 0x4168]
shl edx, 2
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x20]
cmp eax, 9
ja case.0x59bba7.4
jmp dword [eax*4 + 0x59c26c]
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.0059c450
lea ecx, [esi + 0x40e8]
push ecx
push 0
push 1
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x4118]
mov ecx, esi
push edx
push 0
push 2
call fcn.0059c2a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.0059c450
lea edx, [esi + 0x40f8]
mov ecx, esi
push edx
push 1
push 1
call fcn.0059c2a0
lea eax, [esi + 0x4128]
jmp 0x59bc7e
lea ecx, [esi + 0x40e8]
push ecx
push 0
push 0
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x4118]
mov ecx, esi
push edx
push 0
push 1
call fcn.0059c2a0
lea eax, [esi + 0x4148]
mov ecx, esi
push eax
push 0
push 2
call fcn.0059c2a0
lea ecx, [esi + 0x40f8]
push ecx
push 1
push 0
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 1
push 1
call fcn.0059c2a0
lea eax, [esi + 0x4158]
push eax
push 1
push 2
mov ecx, esi
call fcn.0059c2a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 0
mov ecx, esi
call fcn.0059c450
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 2
push 1
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 2
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4
lea ecx, [esi + 0x4118]
push ecx
push 0
push 0
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x4148]
mov ecx, esi
push edx
push 0
push 1
call fcn.0059c2a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.0059c450
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 1
push 0
call fcn.0059c2a0
lea eax, [esi + 0x4158]
mov ecx, esi
push eax
push 1
push 1
call fcn.0059c2a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 1
push 2
mov ecx, esi
call fcn.0059c450
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 2
push 0
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 1
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 0
push 2
call fcn.0059c2a0
lea ecx, [esi + 0x4118]
push ecx
push 1
push 2
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 2
push 2
call fcn.0059c2a0
lea eax, [esi + 0x40d8]
mov ecx, esi
push eax
push 0
push 1
call fcn.0059c2a0
lea ecx, [esi + 0x40e8]
push ecx
push 1
push 1
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x40f8]
mov ecx, esi
push edx
push 2
push 1
call fcn.0059c2a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 0
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 0
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 1
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 2
mov ecx, esi
call fcn.0059c450
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 1
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 1
push 2
mov ecx, esi
call fcn.0059c450
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 2
push 0
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 1
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 0
push 0
call fcn.0059c2a0
lea ecx, [esi + 0x4118]
push ecx
push 1
push 0
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 2
push 0
call fcn.0059c2a0
lea eax, [esi + 0x4138]
mov ecx, esi
push eax
push 0
push 1
call fcn.0059c2a0
lea ecx, [esi + 0x4148]
push ecx
push 1
push 1
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x4158]
mov ecx, esi
push edx
push 2
push 1
call fcn.0059c2a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 2
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4
lea eax, [esi + 0x4118]
mov ecx, esi
push eax
push 2
push 2
call fcn.0059c2a0
lea ecx, [esi + 0x40e8]
push ecx
push 2
push 1
mov ecx, esi
call fcn.0059c2a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 0
mov ecx, esi
call fcn.0059c450
lea ecx, [esi + 0x4108]
push ecx
push 1
push 2
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x40d8]
mov ecx, esi
push edx
push 1
push 1
call fcn.0059c2a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 1
mov ecx, esi
call fcn.0059c450
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4
lea edx, [esi + 0x40e8]
mov ecx, esi
push edx
push 2
push 0
call fcn.0059c2a0
lea eax, [esi + 0x4118]
mov ecx, esi
push eax
push 2
push 1
call fcn.0059c2a0
lea ecx, [esi + 0x4148]
push ecx
push 2
push 2
mov ecx, esi
call fcn.0059c2a0
lea edx, [esi + 0x40d8]
mov ecx, esi
push edx
push 1
push 0
call fcn.0059c2a0
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 1
push 1
call fcn.0059c2a0
lea ecx, [esi + 0x4138]
push ecx
push 1
push 2
mov ecx, esi
call fcn.0059c2a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 1
mov ecx, esi
call fcn.0059c450
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4
lea edx, [esi + 0x4118]
mov ecx, esi
push edx
push 2
push 0
call fcn.0059c2a0
lea eax, [esi + 0x4148]
mov ecx, esi
push eax
push 2
push 1
call fcn.0059c2a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.0059c450
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 1
push 0
call fcn.0059c2a0
lea ecx, [esi + 0x4138]
push ecx
push 1
push 1
mov ecx, esi
call fcn.0059c2a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 2
mov ecx, esi
call fcn.0059c450
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 0
mov ecx, esi
call fcn.0059c450
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 1
mov ecx, esi
call fcn.0059c450
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 2
mov ecx, esi
call fcn.0059c450
pop edi
pop esi
add esp, 0x14
ret 4