Function at 0x45c014
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
cmp dword [eax + 0x594bf8], 0xffffffff
jne 0x45c03d
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
cmp dword [ecx + 0x594c4c], 0
jne 0x45c03d
jmp 0x45c8d3
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bfc]
imul eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x595080]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
cmp dword [eax + 0x594c14], 0
jne 0x45c14e
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
cmp dword [ecx + 0x594c18], 0
je 0x45c14e
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594bfc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x88780096
jne 0x45c105
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x50]
test eax, eax
je 0x45c0d3
jmp 0x45c8d3
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594bfc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45c110
jmp 0x45c8d3
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0045bf73
add esp, 0x14
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x4c]
mov dword [ebp - 4], eax
jmp 0x45c8d3
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c24]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x45c172
cmp dword [ebp - 0x44], 1
je 0x45c445
jmp 0x45c8d3
mov edx, dword [0x5950a4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [eax + 0x594c10]
cmp edx, dword [ecx + 0x594c00]
ja 0x45c378
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [eax + 0x594c00]
sub edx, dword [ecx + 0x594c10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x594bfc]
jbe 0x45c1d4
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bfc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c10]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov dword [edx + 0x594c10], ecx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
cmp dword [eax + 0x594c4c], 0
jne 0x45c230
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594bf8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
jmp 0x45c250
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c4c]
add edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045ab60
add esp, 0xc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x594bfc]
je 0x45c378
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
cmp dword [eax + 0x594c4c], 0
jne 0x45c298
push 0
push 0
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594bf8]
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bfc]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c10], eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c18]
add eax, 1
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c18], eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
cmp dword [edx + 0x594c14], 0
jne 0x45c311
mov dword [ebp - 8], 0
jmp 0x45c2ef
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x594c10]
jge 0x45c30f
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov byte [eax + ecx], 0
jmp 0x45c2e6
jmp 0x45c378
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
cmp dword [edx + 0x594c4c], 0
jne 0x45c34f
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c10]
push edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594bf8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
jmp 0x45c378
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c10]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c4c]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
push ecx
call fcn.0045ab60
add esp, 0xc
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594bfc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x88780096
jne 0x45c3fa
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x50]
test eax, eax
je 0x45c3c8
jmp 0x45c8d3
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594bfc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45c405
jmp 0x45c8d3
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0045bf73
add esp, 0x14
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0x4c]
mov dword [ebp - 4], eax
jmp 0x45c8d3
cmp dword [ebp + 8], 0
jne 0x45c46a
mov ecx, dword [0x5950a4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [0x5950a4]
add eax, dword [edx + 0x594bfc]
mov dword [ebp - 0x28], eax
jmp 0x45c49b
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594bfc]
mov eax, dword [0x5950a4]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bfc]
imul eax, eax, 3
mov ecx, dword [0x5950a4]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bfc]
mov ecx, dword [0x5950a4]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [eax + 0x594c04]
cmp edx, dword [ecx + 0x594c10]
jae 0x45c4d2
jmp 0x45c8d3
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594bfc]
shr ecx, 2
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
xor edx, edx
mov ecx, 0x46
div ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [edx + 0x594c04]
sub ecx, dword [eax + 0x594c10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0xc]
jae 0x45c51c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c10]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov dword [eax + 0x594c10], edx
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
cmp dword [ecx + 0x594c30], 0
je 0x45c57e
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [ebp - 0x40]
sub eax, dword [edx + 0x594c30]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c30]
shl edx, 2
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax*4]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.0045ab60
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x45c5fa
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594bf8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax + 0x594c30]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
push edx
push 2
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0045bbc2
add esp, 0x14
mov eax, dword [ebp - 0x3c]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c30]
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + eax*4]
push edx
call fcn.0045ab60
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [eax + 0x594c04]
cmp edx, dword [ecx + 0x594c10]
jne 0x45c811
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x595058]
mov dword [eax + 0x594c10], edx
push 0
push 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c0c]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bf8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
push 0
push 0
call fcn.0045bbc2
add esp, 0x14
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x40]
je 0x45c69e
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
cmp dword [eax + 0x594c14], 0
jne 0x45c69e
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0xc]
shl ecx, 2
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
lea ecx, [eax + edx*4]
push ecx
call fcn.0045ab7b
add esp, 8
jmp 0x45c7f6
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x594c30]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x40]
jae 0x45c766
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [ebp - 0x40]
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov dword [eax + 0x594c30], edx
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594bf8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax + 0x594c30]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
push edx
push 2
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0045bbc2
add esp, 0x14
mov eax, dword [ebp - 0x3c]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c30]
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + eax*4]
push edx
call fcn.0045ab60
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c10]
add ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov dword [edx + 0x594c10], ecx
jmp 0x45c7f6
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax + 0x594c30]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
shl edx, 2
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c30]
mov eax, dword [ebp - 0x34]
lea ecx, [eax + edx*4]
push ecx
call fcn.0045ab60
add esp, 0xc
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x594c30]
xor edx, edx
div dword [ebp - 0x40]
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov dword [eax + 0x594c30], edx
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c30]
shl edx, 2
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax*4]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax + 0x594c30]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx*4]
push eax
call fcn.0045dd90
add esp, 0xc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c18]
add edx, 1
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov dword [eax + 0x594c18], edx
push 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bfc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [eax + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x88780096
jne 0x45c890
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [eax + 0x50]
test eax, eax
je 0x45c85e
jmp 0x45c8d3
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594bfc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45c898
jmp 0x45c8d3
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0045bf73
add esp, 0x14
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x4c]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret