Function at 0x457410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x751f00]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x58]
call fcn.004572d0
push 0x71f834
mov eax, dword [ebp + 8]
push eax
call fcn.00560fdf
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45744c
xor al, al
jmp 0x4577f6
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x12
lea edx, [ebp - 0x1c]
push edx
call fcn.00560efe
add esp, 0x10
movzx eax, byte [ebp - 0x1b]
test eax, eax
jne 0x45747a
movzx ecx, byte [ebp - 0x1a]
cmp ecx, 0xa
je 0x45748d
movzx edx, byte [ebp - 0x1a]
cmp edx, 2
je 0x45748d
mov eax, dword [ebp - 4]
push eax
call fcn.00560bc5
add esp, 4
xor al, al
jmp 0x4577f6
movzx ecx, byte [ebp - 0x1c]
test ecx, ecx
je 0x4574c8
push 1
movzx edx, byte [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00560ac9
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4574c8
push 0
push str.Error
push str.TGA.LoadFromFile___Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4577f6
movzx ecx, word [ebp - 0x10]
mov edx, dword [ebp - 0x58]
mov dword [edx + 4], ecx
movzx eax, word [ebp - 0xe]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 8], eax
movzx edx, byte [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov eax, dword [ecx + 4]
imul eax, dword [edx + 8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call int.0051aa57
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x14], 0
jne 0x457534
mov eax, dword [ebp - 4]
push eax
call fcn.00560bc5
add esp, 4
xor al, al
jmp 0x4577f6
mov dword [ebp - 0x20], 0
jmp 0x457546
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 8]
jae 0x45779f
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x20]
imul edx, dword [ecx + 4]
mov dword [ebp - 0x24], edx
movzx eax, byte [ebp - 0xb]
and eax, 0x20
jne 0x457581
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 8]
sub edx, dword [ebp - 0x20]
sub edx, 1
mov eax, dword [ebp - 0x58]
imul edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ecx + 4]
jae 0x45779a
movzx eax, byte [ebp - 0x1a]
cmp eax, 0xa
jne 0x457715
mov ecx, dword [ebp - 4]
push ecx
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x29], al
movzx edx, byte [ebp - 0x29]
and edx, 0x80
mov word [ebp - 0x30], dx
movzx eax, byte [ebp - 0x29]
and eax, 0x7f
add eax, 1
mov word [ebp - 0x34], ax
movzx ecx, word [ebp - 0x30]
test ecx, ecx
je 0x457673
mov edx, dword [ebp - 4]
push edx
call fcn.0056091b
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
push eax
call fcn.0056091b
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0056091b
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], 0xff
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0xc], 0x20
jne 0x457627
mov eax, dword [ebp - 4]
push eax
call fcn.0056091b
add esp, 4
mov dword [ebp - 0x38], eax
movzx ecx, word [ebp - 0x34]
mov dx, word [ebp - 0x34]
sub dx, 1
mov word [ebp - 0x34], dx
test ecx, ecx
je 0x45766e
mov eax, dword [ebp - 0x38]
shl eax, 0x18
mov ecx, dword [ebp - 0x44]
shl ecx, 0x10
add eax, ecx
mov edx, dword [ebp - 0x3c]
shl edx, 8
add eax, dword [ebp - 0x40]
add edx, eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0x14]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x457627
jmp 0x457710
movzx eax, word [ebp - 0x34]
mov cx, word [ebp - 0x34]
sub cx, 1
mov word [ebp - 0x34], cx
test eax, eax
je 0x457710
mov edx, dword [ebp - 4]
push edx
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x47], al
mov eax, dword [ebp - 4]
push eax
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x46], al
mov ecx, dword [ebp - 4]
push ecx
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x48], al
mov byte [ebp - 0x45], 0xff
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0xc], 0x20
jne 0x4576d4
mov eax, dword [ebp - 4]
push eax
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x45], al
movzx ecx, byte [ebp - 0x45]
shl ecx, 0x18
movzx edx, byte [ebp - 0x48]
shl edx, 0x10
add ecx, edx
movzx eax, byte [ebp - 0x46]
shl eax, 8
add ecx, eax
movzx edx, byte [ebp - 0x47]
add ecx, edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x58]
mov edx, dword [edx + 0x14]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x457673
jmp 0x457795
mov ecx, dword [ebp - 4]
push ecx
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x4b], al
mov edx, dword [ebp - 4]
push edx
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x4a], al
mov eax, dword [ebp - 4]
push eax
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x4c], al
mov byte [ebp - 0x49], 0xff
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0xc], 0x20
jne 0x45775e
mov edx, dword [ebp - 4]
push edx
call fcn.0056091b
add esp, 4
mov byte [ebp - 0x49], al
movzx eax, byte [ebp - 0x49]
shl eax, 0x18
movzx ecx, byte [ebp - 0x4c]
shl ecx, 0x10
add eax, ecx
movzx edx, byte [ebp - 0x4a]
shl edx, 8
add eax, edx
movzx ecx, byte [ebp - 0x4b]
add eax, ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0x14]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x457588
jmp 0x45753d
mov eax, dword [ebp - 4]
push eax
call fcn.00560bc5
add esp, 4
mov dword [ebp - 0x50], 0
jmp 0x4577bd
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov ecx, dword [edx + 4]
imul ecx, dword [eax + 8]
cmp dword [ebp - 0x50], ecx
jae 0x4577f4
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + ecx*4]
and edx, 0xff000000
cmp edx, 0xff000000
je 0x4577f2
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x10], 1
jmp 0x4577f4
jmp 0x4577b4
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0055e7fd
mov esp, ebp
pop ebp
ret 4