Function at 0x49f670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push 0x716764
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401720
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49f6bc
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
jmp 0x49fcf2
mov ecx, dword [ebp - 0xc]
push ecx
push 0x12
push 1
lea edx, [ebp - 0x5c]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 0x12
je 0x49f6df
jmp 0x49fcb1
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x5c]
mov dword [ebp - 0x64], edx
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x5c]
mov dword [ebp - 0x40], ecx
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x5c]
mov dword [ebp - 0x60], eax
mov ecx, 1
imul edx, ecx, 0xc
movzx eax, byte [ebp + edx - 0x5c]
mov ecx, 1
imul edx, ecx, 0xd
movzx ecx, byte [ebp + edx - 0x5c]
shl ecx, 8
add eax, ecx
mov dword [0xe693a8], eax
mov edx, 1
imul eax, edx, 0xe
movzx ecx, byte [ebp + eax - 0x5c]
mov edx, 1
imul eax, edx, 0xf
movzx edx, byte [ebp + eax - 0x5c]
shl edx, 8
add ecx, edx
mov dword [0xe693ac], ecx
mov eax, 1
shl eax, 4
movzx ecx, byte [ebp + eax - 0x5c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], 0
mov edx, dword [0xe693a8]
mov dword [ebp - 0x1c], edx
mov eax, dword [0xe693ac]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x60], 2
je 0x49f7cd
cmp dword [ebp - 0x40], 1
je 0x49f7cd
push str.Tga_must_be_true_colour_and_uncompressed._n
call fcn.004017c0
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401700
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
jmp 0x49fcf2
cmp dword [ebp - 0x38], 0x20
je 0x49f81a
cmp dword [ebp - 0x38], 0x18
je 0x49f81a
cmp dword [ebp - 0x40], 1
je 0x49f81a
push str.Tga_must_be_32_bit_or_24_bit__24_bit__8_bit_alpha_channel__n
call fcn.004017c0
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401700
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x49fcf2
mov eax, dword [0xe693a8]
cmp eax, dword [ebp + 0x10]
jg 0x49f82f
mov ecx, dword [0xe693ac]
cmp ecx, dword [ebp + 0x14]
jle 0x49f87f
mov edx, dword [0xe693ac]
push edx
mov eax, dword [0xe693a8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.Invalid_dimensions:_n_tWanted____d_x__d_n_tGot________d_x__d_n
call fcn.004017c0
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401700
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
jmp 0x49fcf2
mov dword [ebp - 0x20], 1
push 1
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.006cef50
add esp, 0xc
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x5c]
test ecx, ecx
je 0x49fa45
mov edx, 1
imul eax, edx, 5
movzx ecx, byte [ebp + eax - 0x5c]
mov edx, 1
imul eax, edx, 6
movzx edx, byte [ebp + eax - 0x5c]
shl edx, 8
add ecx, edx
mov dword [ebp - 0x68], ecx
mov eax, 1
imul ecx, eax, 7
movzx edx, byte [ebp + ecx - 0x5c]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x6c]
add eax, 7
sar eax, 3
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x300
jbe 0x49f90f
push 0x135
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenDDLibrarySourceTga.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 1
mov eax, 1
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x380]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, dword [ebp - 0x2c]
je 0x49f940
jmp 0x49fcb1
mov eax, dword [0xe693a8]
imul eax, dword [0xe693ac]
push eax
call fcn.0067ac30
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0xe693a8]
imul eax, dword [0xe693ac]
push eax
push 1
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [0xe693a8]
imul edx, dword [0xe693ac]
cmp eax, edx
je 0x49f998
jmp 0x49fcb1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
jmp 0x49f9b0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [0xe693a8]
imul edx, dword [0xe693ac]
cmp dword [ebp - 4], edx
jge 0x49fa2e
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [ebp - 5], cl
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
movzx eax, byte [ebp - 5]
imul ecx, eax, 3
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov cl, byte [ebp + ecx - 0x37e]
mov byte [eax + edx*4 + 2], cl
movzx edx, byte [ebp - 5]
imul eax, edx, 3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov al, byte [ebp + eax - 0x37f]
mov byte [edx + ecx*4 + 1], al
movzx ecx, byte [ebp - 5]
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dl, byte [ebp + edx - 0x380]
mov byte [ecx + eax*4], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov byte [ecx + eax*4 + 3], 0xff
mov byte [ebp - 6], 1
jmp 0x49f9a7
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
call fcn.0067ac50
add esp, 4
jmp 0x49fb86
cmp dword [ebp - 0x38], 0x20
jne 0x49fa95
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0xe693a8]
shl edx, 2
imul edx, dword [0xe693ac]
push edx
push 1
mov eax, dword [ebp + 0x18]
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [0xe693a8]
shl ecx, 2
imul ecx, dword [0xe693ac]
cmp eax, ecx
je 0x49fa8c
jmp 0x49fcb1
mov byte [ebp - 6], 0
jmp 0x49fb86
imul edx, dword [0xe693a8], 3
imul edx, dword [0xe693ac]
push edx
call fcn.0067ac30
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xc]
push ecx
imul edx, dword [0xe693a8], 3
imul edx, dword [0xe693ac]
push edx
push 1
mov eax, dword [ebp - 0x3c]
push eax
call fcn.006b7750
add esp, 0x10
imul ecx, dword [0xe693a8], 3
imul ecx, dword [0xe693ac]
cmp eax, ecx
je 0x49faf2
jmp 0x49fcb1
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
jmp 0x49fb0a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [0xe693a8]
imul ecx, dword [0xe693ac]
cmp dword [ebp - 4], ecx
jge 0x49fb70
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
mov byte [ecx + eax*4 + 1], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [edx + ecx*4 + 2], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov byte [eax + edx*4 + 3], 0xff
jmp 0x49fb01
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
call fcn.0067ac50
add esp, 4
mov byte [ebp - 6], 1
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401700
add esp, 4
movzx ecx, byte [ebp - 6]
test ecx, ecx
jne 0x49fbdc
mov dword [ebp - 4], 0
jmp 0x49fbac
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [0xe693a8]
imul eax, dword [0xe693ac]
cmp dword [ebp - 4], eax
jge 0x49fbda
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
movzx eax, byte [edx + ecx*4 + 3]
cmp eax, 0xff
je 0x49fbd8
mov dword [ebp - 0x14], 1
jmp 0x49fbda
jmp 0x49fba3
jmp 0x49fbe3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
jmp 0x49fbf5
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov eax, dword [0xe693ac]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x28], eax
jge 0x49fc92
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x44], edx
mov eax, dword [0xe693ac]
sub eax, 1
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x24], 0
jmp 0x49fc2e
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [0xe693a8]
jge 0x49fc8d
mov eax, dword [ebp - 0x44]
imul eax, dword [0xe693a8]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x48]
imul eax, dword [0xe693a8]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x44]
imul eax, dword [0xe693a8]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x48]
imul edx, dword [0xe693a8]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x80]
mov dword [eax + edx*4], ecx
jmp 0x49fc25
jmp 0x49fbec
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
jmp 0x49fcf2
mov edx, dword [ebp + 0xc]
push edx
push str.File_error_loading_TGA_file__s_n
call fcn.004017c0
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401700
add esp, 4
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret