Function at 0x564770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push 0x716764
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00690360
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5647db
mov edx, dword [ebp + 0xc]
push edx
push 0x724cd8
call fcn.00562210
add esp, 8
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov eax, dword [ebp - 8]
push eax
push 0x12
push 1
lea ecx, [ebp - 0xa8]
push ecx
call fcn.006b7750
add esp, 0x10
cmp eax, 0x12
je 0x56484b
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.00564710
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x40], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x38]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0xa8]
mov dword [ebp - 0x34], edx
mov eax, 1
shl eax, 1
movzx ecx, byte [ebp + eax - 0xa8]
mov dword [ebp - 0x30], ecx
mov edx, 1
imul eax, edx, 0xc
movzx ecx, byte [ebp + eax - 0xa8]
mov edx, 1
imul eax, edx, 0xd
movzx edx, byte [ebp + eax - 0xa8]
shl edx, 8
add ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, 1
imul ecx, eax, 0xe
movzx edx, byte [ebp + ecx - 0xa8]
mov eax, 1
imul ecx, eax, 0xf
movzx eax, byte [ebp + ecx - 0xa8]
shl eax, 8
add edx, eax
mov dword [ebp - 0x24], edx
mov ecx, 1
shl ecx, 4
movzx edx, byte [ebp + ecx - 0xa8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x30], 2
je 0x56492e
push str.Tga_must_be_true_colour_and_uncompressed._n
call fcn.00562210
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.0068fac0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x564dc0
cmp dword [ebp - 0x2c], 0x20
je 0x564975
cmp dword [ebp - 0x2c], 0x18
je 0x564975
push str.Tga_must_be_32_bit_or_24_bit__24_bit__8_bit_alpha_channel__n
call fcn.00562210
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0068fac0
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0x10]
jg 0x564985
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x14]
jle 0x5649d0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.Invalid_dimensions:_n_tWanted____d_x__d_n_tGot________d_x__d_n
call fcn.00562210
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
call fcn.0068fac0
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0
jmp 0x5649e9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x34]
jge 0x564a60
mov ecx, dword [ebp - 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x564a5e
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc8]
push eax
call fcn.00564710
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x50], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov edx, dword [ebp - 0x50]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x564dc0
jmp 0x5649e0
cmp dword [ebp - 0x2c], 0x20
jne 0x564aec
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x24]
push ecx
push 4
mov edx, dword [ebp + 0x18]
push edx
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x24]
cmp eax, ecx
je 0x564ae3
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.00564710
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x60], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
mov edx, dword [ebp - 0x60]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x58]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov byte [ebp - 0x19], 0
jmp 0x564cad
mov dword [ebp - 4], 0
jmp 0x564afe
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x24]
cmp dword [ebp - 4], ecx
jge 0x564ca9
mov edx, dword [ebp - 8]
push edx
push 1
push 1
lea eax, [ebp - 0x27]
push eax
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x564b7b
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call fcn.00564710
add esp, 0x10
mov edx, dword [eax]
mov dword [ebp - 0x74], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x70], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x6c], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x74]
mov dword [ecx], edx
mov eax, dword [ebp - 0x70]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x68]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov ecx, dword [ebp - 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x26]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x564bee
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.00564710
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x84], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x80], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x7c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x84]
mov dword [eax], ecx
mov edx, dword [ebp - 0x80]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x78]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov eax, dword [ebp - 8]
push eax
push 1
push 1
lea ecx, [ebp - 0x25]
push ecx
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x564c73
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00564710
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x94], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x90], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x94]
mov dword [eax], ecx
mov edx, dword [ebp - 0x90]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x88]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x564dc0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dl, byte [ebp - 0x25]
mov byte [ecx + eax*4 + 2], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dl, byte [ebp - 0x26]
mov byte [ecx + eax*4 + 1], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dl, byte [ebp - 0x27]
mov byte [ecx + eax*4], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov byte [ecx + eax*4 + 3], 0xff
jmp 0x564af5
mov byte [ebp - 0x19], 1
mov edx, dword [ebp - 8]
push edx
call fcn.0068fac0
add esp, 4
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x564d23
mov ecx, dword [ebp - 0xc]
or ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x564cdc
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
cmp dword [ebp - 4], eax
jge 0x564d12
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
movzx eax, byte [edx + ecx*4 + 3]
cmp eax, 0xff
je 0x564d10
mov ecx, dword [ebp - 0xc]
or ecx, 1
mov dword [ebp - 0xc], ecx
je 0x564d10
mov edx, dword [ebp - 0xc]
and edx, 0xfffffffd
mov dword [ebp - 0xc], edx
jmp 0x564d12
jmp 0x564cd3
mov eax, dword [ebp - 0xc]
and eax, 1
jne 0x564d23
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffffd
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 4
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x564d3e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x24]
cmp dword [ebp - 4], ecx
jge 0x564da3
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
movzx ecx, byte [eax + edx*4 + 2]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
movzx edx, byte [eax + edx*4 + 1]
cmp ecx, edx
jne 0x564d96
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
movzx edx, byte [ecx + eax*4 + 2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
movzx eax, byte [ecx + eax*4]
cmp edx, eax
jne 0x564d96
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
movzx eax, byte [edx + ecx*4 + 1]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
movzx ecx, byte [edx + ecx*4]
cmp eax, ecx
je 0x564da1
mov edx, dword [ebp - 0xc]
and edx, 0xfffffffb
mov dword [ebp - 0xc], edx
jmp 0x564da3
jmp 0x564d35
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret