Function at 0x4a0490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x774
push 0x716764
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401720
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4a04dc
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 0x4a0a62
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x18
push 1
mov edx, 1
imul eax, edx, 0
lea ecx, [ebp + eax - 0x774]
push ecx
call fcn.006b7750
add esp, 0x10
cmp eax, 0x18
je 0x4a050b
jmp 0x4a0a21
mov edx, dword [ebp - 0x2c]
push edx
push 0x400
push 1
mov eax, 1
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x474]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 0x400
je 0x4a053f
jmp 0x4a0a21
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00401700
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 8], 0
jmp 0x4a056b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x40
jge 0x4a0584
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + edx - 0x474]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
jmp 0x4a0562
mov dword [ebp - 8], 0x3c0
jmp 0x4a0596
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x400
jge 0x4a05b2
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + edx - 0x474]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
jmp 0x4a058d
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x38]
jle 0x4a05e8
mov dword [ebp - 8], 0
jmp 0x4a05cc
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x40
jge 0x4a05e8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dl, byte [ebp + ecx - 0xb4]
mov byte [ebp + eax - 0x474], dl
jmp 0x4a05c3
push 0x716764
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401720
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a062b
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 0x4a0a62
mov ecx, dword [ebp - 0x10]
push ecx
push 0x12
push 1
lea edx, [ebp - 0x58]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 0x12
je 0x4a064e
jmp 0x4a0a21
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x58]
mov dword [ebp - 0x60], edx
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x58]
mov dword [ebp - 0x5c], ecx
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x58]
mov dword [ebp - 0x70], eax
mov ecx, 1
imul edx, ecx, 0xc
movzx eax, byte [ebp + edx - 0x58]
mov ecx, 1
imul edx, ecx, 0xd
movzx ecx, byte [ebp + edx - 0x58]
shl ecx, 8
add eax, ecx
mov dword [0xe693a8], eax
mov edx, 1
imul eax, edx, 0xe
movzx ecx, byte [ebp + eax - 0x58]
mov edx, 1
imul eax, edx, 0xf
movzx edx, byte [ebp + eax - 0x58]
shl edx, 8
add ecx, edx
mov dword [0xe693ac], ecx
mov eax, 1
shl eax, 4
movzx ecx, byte [ebp + eax - 0x58]
mov dword [ebp - 0x74], 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 - 0x5c], 1
je 0x4a0736
push str.Tga_must_be_true_colour_and_uncompressed._n
call fcn.004017c0
add esp, 4
mov ecx, dword [ebp - 0x10]
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 0x4a0a62
mov edx, dword [0xe693a8]
cmp edx, dword [ebp + 0x14]
jg 0x4a074b
mov eax, dword [0xe693ac]
cmp eax, dword [ebp + 0x18]
jle 0x4a079c
mov ecx, dword [0xe693ac]
push ecx
mov edx, dword [0xe693a8]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str.Invalid_dimensions:_n_tWanted____d_x__d_n_tGot________d_x__d_n
call fcn.004017c0
add esp, 0x14
mov edx, dword [ebp - 0x10]
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 0x4a0a62
mov dword [ebp - 0x20], 1
mov dword [ebp - 0xc], 0
jmp 0x4a07b5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x60]
jge 0x4a07e2
mov edx, dword [ebp - 0x10]
push edx
push 1
push 1
lea eax, [ebp - 0x2d]
push eax
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x4a07e0
jmp 0x4a0a21
jmp 0x4a07ac
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x58]
test edx, edx
je 0x4a093f
mov eax, 1
imul ecx, eax, 5
movzx edx, byte [ebp + ecx - 0x58]
mov eax, 1
imul ecx, eax, 6
movzx eax, byte [ebp + ecx - 0x58]
shl eax, 8
add edx, eax
mov dword [ebp - 0x64], edx
mov ecx, 1
imul edx, ecx, 7
movzx eax, byte [ebp + edx - 0x58]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x64]
imul ecx, dword [ebp - 0x68]
add ecx, 7
sar ecx, 3
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x300
jle 0x4a0859
push 0x3a2
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenDDLibrarySourceTga.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push 1
mov ecx, 1
imul edx, ecx, 0
lea eax, [ebp + edx - 0x774]
push eax
call fcn.006b7750
add esp, 0x10
cmp eax, dword [ebp - 0x3c]
je 0x4a088a
jmp 0x4a0a21
mov dword [ebp - 0xc], 0
jmp 0x4a089c
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [0xe693a8]
imul edx, dword [0xe693ac]
cmp dword [ebp - 0xc], edx
jge 0x4a093b
mov eax, dword [ebp - 0x10]
push eax
push 1
push 1
lea ecx, [ebp - 1]
push ecx
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x4a08d5
jmp 0x4a0a21
movzx edx, byte [ebp - 1]
mov eax, 0xff
sub eax, edx
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
and ecx, 0xf
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x1c]
mov dl, byte [ebp + edx*4 - 0x474]
mov byte [ecx + eax*4 + 2], dl
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x1c]
mov al, byte [ebp + eax*4 - 0x473]
mov byte [edx + ecx*4 + 1], al
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x1c]
mov cl, byte [ebp + ecx*4 - 0x472]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x1c]
mov byte [eax + edx*4 + 3], 0xff
jmp 0x4a0893
mov byte [ebp - 0x2e], 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401700
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
jmp 0x4a0964
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [0xe693ac]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x28], eax
jge 0x4a0a02
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov ecx, dword [0xe693ac]
sub ecx, 1
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x24], 0
jmp 0x4a099e
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [0xe693a8]
jge 0x4a09fd
mov ecx, dword [ebp - 0x40]
imul ecx, dword [0xe693a8]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x44]
imul ecx, dword [0xe693a8]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x40]
imul ecx, dword [0xe693a8]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x1c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x44]
imul eax, dword [0xe693a8]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x6c]
mov dword [ecx + eax*4], edx
jmp 0x4a0995
jmp 0x4a095b
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 0x4a0a62
mov eax, dword [ebp + 0xc]
push eax
push str.File_error_loading_TGA_file__s_n
call fcn.004017c0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401700
add esp, 4
mov dword [ebp - 0x20], 0
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]
mov esp, ebp
pop ebp
ret