Function at 0x4077f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e529
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x49f56c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x43c], 0
lea ecx, [ebp - 0x420]
call fcn.004028e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call fcn.00407630
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004028e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00402190
movzx ecx, al
test ecx, ecx
jne 0x407ad3
push 0x485d14
lea ecx, [ebp - 0x14]
call fcn.0041a040
push eax
call fcn.00465a1f
add esp, 8
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
je 0x407ad3
push 2
push 0
mov edx, dword [ebp - 0x428]
push edx
call fcn.004658e5
add esp, 0xc
mov eax, dword [ebp - 0x428]
push eax
call fcn.004657f6
add esp, 4
mov dword [ebp - 0x434], eax
push 0
push 0
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.004658e5
add esp, 0xc
mov edx, dword [ebp - 0x428]
push edx
push 2
push 1
lea eax, [ebp - 0x41c]
push eax
call fcn.00465645
add esp, 0x10
mov ecx, dword [ebp - 0x428]
push ecx
push 1
push 4
lea edx, [ebp - 0x21c]
push edx
call fcn.00465645
add esp, 0x10
movzx eax, byte [ebp - 0x21c]
shl eax, 0x18
movzx ecx, byte [ebp - 0x21b]
shl ecx, 0x10
add eax, ecx
movzx edx, byte [ebp - 0x21a]
shl edx, 8
add eax, edx
movzx ecx, byte [ebp - 0x219]
add eax, ecx
mov dword [ebp - 0x430], eax
movzx edx, byte [ebp - 0x41c]
test edx, edx
jne 0x407977
movzx eax, byte [ebp - 0x41b]
cmp eax, 0xbf
jne 0x407977
mov ecx, dword [ebp - 0x434]
sub ecx, 6
cmp ecx, dword [ebp - 0x430]
jne 0x407968
push 0x485be4
lea ecx, [ebp - 0x10]
call fcn.004029f0
jmp 0x407975
push str.WRONGLEN
lea ecx, [ebp - 0x10]
call fcn.004029f0
jmp 0x407984
push str.UNSOL
lea ecx, [ebp - 0x10]
call fcn.004029f0
push 0x485d1c
lea edx, [ebp - 0x10]
push edx
call fcn.004088e0
add esp, 8
movzx eax, al
test eax, eax
je 0x407ac4
push 0
push 0x10
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.004658e5
add esp, 0xc
mov edx, dword [ebp - 0x428]
push edx
push 2
push 1
lea eax, [ebp - 0x41c]
push eax
call fcn.00465645
add esp, 0x10
movzx ecx, byte [ebp - 0x41c]
shl ecx, 8
movzx edx, byte [ebp - 0x41b]
add ecx, edx
mov dword [ebp - 0x424], ecx
push 1
mov eax, dword [ebp - 0x424]
add eax, 4
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.004658e5
add esp, 0xc
mov edx, dword [ebp - 0x428]
push edx
call fcn.004071e0
add esp, 4
mov dword [ebp - 0x42c], eax
push 1
mov eax, dword [ebp - 0x42c]
sub eax, 1
shr eax, 1
add eax, 1
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.004658e5
add esp, 0xc
mov edx, dword [ebp - 0x428]
push edx
call fcn.004071e0
add esp, 4
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x42c]
sub ecx, 1
shr ecx, 1
push ecx
push 1
lea edx, [ebp - 0x41c]
push edx
call fcn.00465645
add esp, 0x10
mov eax, dword [ebp - 0x42c]
sub eax, 1
shr eax, 1
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00408720
mov dword [ebp - 0x440], eax
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x444], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x444]
push eax
lea ecx, [ebp - 0x420]
call fcn.00401c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x438]
call fcn.004029a0
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.00465387
add esp, 4
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402940
mov eax, dword [ebp - 0x43c]
or eax, 1
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004029a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004029a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x420]
call fcn.004029a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00464355
mov esp, ebp
pop ebp
ret