Function at 0x452660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x24c], ecx
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], 0
push 0x55d30c
mov edx, dword [ebp + 8]
push edx
call fcn.004de640
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4526c6
cmp dword [ebp + 0x10], 0
jne 0x4526bf
push 0
push str.file_not_found
mov eax, dword [ebp + 8]
push eax
push 0
call dword [0x55828c]
xor eax, eax
jmp 0x452a1c
push 2
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0041dd51
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call fcn.0041dc59
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x452745
call fcn.00413df1
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x12c]
push eax
push 0x55d320
lea ecx, [ebp - 0x128]
push ecx
call dword [0x5582d0]
add esp, 0x14
push 0
push 0x55d344
lea edx, [ebp - 0x128]
push edx
push 0
call dword [0x55828c]
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041329a
add esp, 4
xor eax, eax
jmp 0x452a1c
cmp dword [ebp - 0x10], 0
jne 0x452761
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0041329a
add esp, 4
mov eax, 1
jmp 0x452a1c
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0041dd51
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 0x412
push eax
call fcn.00413380
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 0x3f
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xffffffc0
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x4527dc
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041329a
add esp, 4
push 0
push 0x55d34c
push 0x55d354
push 0
call dword [0x55828c]
xor eax, eax
jmp 0x452a1c
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041da81
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0041329a
add esp, 4
cmp dword [ebp - 0x1c], 0
jge 0x45283a
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
push str.namelist
lea ecx, [ebp - 0x230]
push ecx
call dword [0x5582d0]
add esp, 0x10
push 0
push str.ftell
lea edx, [ebp - 0x230]
push edx
push 0
call dword [0x55828c]
cmp dword [ebp + 0xc], 0
je 0x452884
mov dword [ebp - 0x234], 0
jmp 0x45285b
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
cmp ecx, dword [ebp - 0x1c]
jge 0x452884
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x234]
movsx eax, byte [edx]
xor eax, 0xff
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x234]
mov byte [ecx], al
jmp 0x45284c
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x1c]
mov byte [edx], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
mov byte [eax + 1], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x1c]
jge 0x4529a9
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x24c]
call fcn.00452a30
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x238]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x1c]
jge 0x4529a4
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x24c]
call fcn.00452ac0
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0x80
jle 0x452917
push 0
push 0x55d390
push 0x55d398
push 0
call dword [0x55828c]
jmp 0x4529a9
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx + 8]
shl eax, 7
mov ecx, dword [ebp - 0x24c]
add eax, dword [ecx + 0xc]
push eax
call fcn.004198f0
add esp, 0xc
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx + 8]
shl eax, 7
mov ecx, dword [ebp - 0x24c]
add eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x23c]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x23c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 0x24c]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x24c]
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 4]
jl 0x4529a4
push 0x64
mov ecx, dword [ebp - 0x24c]
call fcn.00452010
jmp 0x45289e
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x240], edx
jmp 0x4529c9
mov eax, dword [ebp - 0x240]
add eax, 1
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x240]
cmp edx, dword [ecx + 4]
jge 0x4529f2
mov eax, dword [ebp - 0x240]
shl eax, 7
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0xc]
mov byte [eax + edx], 0
jmp 0x4529ba
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.004131c7
add esp, 4
mov edx, dword [ebp - 0x24c]
mov dword [edx + 0x10], 0
mov eax, 1
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004130a1
mov esp, ebp
pop ebp
ret 0xc