Function at 0x453670
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x540e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov edx, ecx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0xac]
xor ebp, ebp
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x3c]
cmp esi, ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x20], ebp
rep stosd dword es:[edi], eax
jne 0x4536c5
mov esi, dword [edx + 0x164]
mov ecx, dword [esp + 0xb0]
call fcn.0051286f
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x18]
push 1
push ecx
push ebp
push esi
mov dword [esp + 0x28], ebp
call ebx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ebp
push edx
lea eax, [esp + 0x28]
push 4
push eax
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x453723
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xb4]
push 1
push ebp
push 4
push esi
mov dword [ecx], eax
call ebx
mov dword [esp + 0x14], eax
jmp 0x4536d7
cmp dword [esp + 0x10], ebp
je 0x4538d4
cmp dword [esp + 0x20], 0x1315476
je 0x453745
push 1
push ebp
push 0xfffffffffffffffd
push esi
call ebx
mov dword [esp + 0x14], eax
jmp 0x4536d7
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ebp
push edx
push eax
push esi
call ebx
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x3c]
push ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
push ecx
push 0x60
push edx
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x453790
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xb4]
mov dword [ecx], eax
jmp 0x4536d7
cmp dword [esp + 0x10], ebp
je 0x4538d4
cmp dword [esp + 0x3c], 0x1315476
jne 0x45387e
mov eax, dword [esp + 0x94]
cmp ax, bp
je 0x45387e
mov edi, dword [esp + 0xb0]
and eax, 0xffff
inc eax
mov ecx, edi
push eax
mov dword [esp + 0x14], ebp
call fcn.00512d14
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x10]
push ebp
and ecx, 0xffff
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4537fe
push ebp
mov ecx, edi
call fcn.00512d63
jmp 0x4536d7
mov edx, dword [esp + 0x94]
mov ecx, edi
and edx, 0xffff
push edx
call fcn.00512d63
cmp dword [esp + 0x10], ebp
je 0x4538d4
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x24]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push 0x18
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4536d7
cmp dword [esp + 0x10], ebp
je 0x4538d4
cmp dword [esp + 0x28], 0x1315476
je 0x45389c
mov edx, dword [esp + 0x94]
mov eax, 0xffffff89
and edx, 0xffff
push 1
sub eax, edx
push ebp
push eax
push esi
call ebx
mov dword [esp + 0x14], eax
jmp 0x4536d7
mov eax, dword [esp + 0xb4]
push 1
push ebp
push 0xffffffffffffffa1
push esi
mov dword [eax], 0xd
call ebx
mov dword [esp + 0x14], eax
jmp 0x4536d7
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ebp
push ecx
push edx
push esi
call ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebp
je 0x4538d4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.005128e4
xor eax, eax
jmp 0x4538eb
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 0x10