Function at 0x410730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4b1570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x98], 0
push 0x480bc8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00460890
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41077f
mov eax, 3
jmp 0x410cbd
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004639e3
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.004638ee
add esp, 4
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jg 0x4107c0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00460750
add esp, 4
mov eax, 3
jmp 0x410cbd
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.0043dfcc
add esp, 4
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004639e3
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x98]
push edx
push 1
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0046373b
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x410847
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00460750
add esp, 4
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0043dfc7
add esp, 4
mov eax, 3
jmp 0x410cbd
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041e550
add esp, 4
test eax, eax
je 0x410a54
push 0x10
push str.SIGNED_VER:00001
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
lea ecx, [eax + edx - 0x10]
push ecx
call fcn.00461e5e
add esp, 0xc
test eax, eax
je 0x41088a
mov edx, dword [ebp - 0x98]
mov dword [ebp - 4], edx
jmp 0x4108da
push 4
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
lea edx, [ecx + eax - 0x14]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.004609f0
add esp, 0xc
movzx ecx, byte [ebp - 0x90]
movzx edx, byte [ebp - 0x8f]
shl edx, 8
add ecx, edx
movzx eax, byte [ebp - 0x8e]
shl eax, 0x10
add ecx, eax
movzx edx, byte [ebp - 0x8d]
shl edx, 0x18
add ecx, edx
mov dword [ebp - 4], ecx
push str.PAX_S80_MAPP
call fcn.0045fc50
add esp, 4
push eax
push str.PAX_S80_MAPP
mov esi, dword [ebp - 0x9c]
add esi, dword [ebp - 4]
push str.PAX_S80_MAPP
call fcn.0045fc50
add esp, 4
sub esi, eax
push esi
call fcn.00461e5e
add esp, 0xc
test eax, eax
jne 0x410945
mov eax, dword [ebp - 0xc]
push eax
call fcn.00460750
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
push edx
call fcn.0043dfc7
add esp, 4
xor eax, eax
jmp 0x410cbd
push str.PAX_S80_SAPP
call fcn.0045fc50
add esp, 4
push eax
push str.PAX_S80_SAPP
mov esi, dword [ebp - 0x9c]
add esi, dword [ebp - 4]
push str.PAX_S80_MAPP
call fcn.0045fc50
add esp, 4
sub esi, eax
push esi
call fcn.00461e5e
add esp, 0xc
test eax, eax
jne 0x4109b3
mov eax, dword [ebp - 0xc]
push eax
call fcn.00460750
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
push edx
call fcn.0043dfc7
add esp, 4
mov eax, 1
jmp 0x410cbd
push str.PAX_S80_ADDI
call fcn.0045fc50
add esp, 4
push eax
push str.PAX_S80_ADDI
mov esi, dword [ebp - 0x9c]
add esi, dword [ebp - 4]
push str.PAX_S80_MAPP
call fcn.0045fc50
add esp, 4
sub esi, eax
push esi
call fcn.00461e5e
add esp, 0xc
test eax, eax
jne 0x410a1e
mov eax, dword [ebp - 0xc]
push eax
call fcn.00460750
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
push edx
call fcn.0043dfc7
add esp, 4
mov eax, 2
jmp 0x410cbd
mov eax, dword [ebp - 0xc]
push eax
call fcn.00460750
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.0043dfc7
add esp, 4
mov eax, 3
jmp 0x410cbd
push str.SP30
mov eax, dword [ebp + 8]
push eax
call fcn.00460e90
add esp, 8
test eax, eax
jne 0x410b33
mov ecx, dword [ebp - 0x9c]
add ecx, 0x110
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0xa0]
movzx edx, byte [ecx + 1]
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0xa0]
movzx edx, byte [ecx + 2]
shl edx, 0x10
add eax, edx
mov ecx, dword [ebp - 0xa0]
movzx edx, byte [ecx + 3]
shl edx, 0x18
add eax, edx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
and eax, 0x3ffffff
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
shl ecx, 2
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x94], 0x100000
jb 0x410b0c
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
push eax
call fcn.0043dfc7
add esp, 4
mov eax, 1
jmp 0x410cbd
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xc0]
push edx
call fcn.0043dfc7
add esp, 4
xor eax, eax
jmp 0x410cbd
push str.MT30
mov eax, dword [ebp + 8]
push eax
call fcn.00460e90
add esp, 8
test eax, eax
je 0x410b8b
push str.D300
mov ecx, dword [ebp + 8]
push ecx
call fcn.00460e90
add esp, 8
test eax, eax
je 0x410b8b
push str.D200
mov edx, dword [ebp + 8]
push edx
call fcn.00460e90
add esp, 8
test eax, eax
je 0x410b8b
push str.D210
mov eax, dword [ebp + 8]
push eax
call fcn.00460e90
add esp, 8
test eax, eax
jne 0x410c63
mov ecx, dword [ebp - 0x9c]
add ecx, 0x110
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0xa0]
movzx edx, byte [ecx + 1]
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0xa0]
movzx edx, byte [ecx + 2]
shl edx, 0x10
add eax, edx
mov ecx, dword [ebp - 0xa0]
movzx edx, byte [ecx + 3]
shl edx, 0x18
add eax, edx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
and eax, 0x3ffffff
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
shl ecx, 2
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x94], 0x1000000
jb 0x410c36
mov edx, dword [ebp - 0xc]
push edx
call fcn.00460750
add esp, 4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.0043dfc7
add esp, 4
mov eax, 1
jmp 0x410cbd
mov edx, dword [ebp - 0xc]
push edx
call fcn.00460750
add esp, 4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.0043dfc7
add esp, 4
xor eax, eax
jmp 0x410cbd
mov edx, dword [ebp - 0xc]
push edx
call fcn.00460750
add esp, 4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.0043dfc7
add esp, 4
mov eax, 3
jmp 0x410cbd
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004600a2
mov esp, ebp
pop ebp
ret 8