Function at 0x49fd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
push esi
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 0x49fd81
mov ecx, dword [ebp + 0xc]
push ecx
push str.dont_exist
call fcn.004a1580
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push str.__s_dont_exist__n
call fcn.00495230
add esp, 8
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x4a0485
mov eax, dword [ebp + 0xc]
push eax
push str._file__s_exists__n
call fcn.00495230
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
push 0x12
push 1
lea edx, [ebp - 0x64]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 0x12
je 0x49fdb5
jmp 0x4a0433
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x64]
mov dword [ebp - 0x68], edx
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x64]
mov dword [ebp - 0x44], ecx
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x64]
mov dword [ebp - 0x48], eax
mov ecx, 1
imul edx, ecx, 0xc
movzx eax, byte [ebp + edx - 0x64]
mov ecx, 1
imul edx, ecx, 0xd
movzx ecx, byte [ebp + edx - 0x64]
shl ecx, 8
add eax, ecx
mov dword [0xe693a8], eax
mov edx, 1
imul eax, edx, 0xe
movzx ecx, byte [ebp + eax - 0x64]
mov edx, 1
imul eax, edx, 0xf
movzx edx, byte [ebp + eax - 0x64]
shl edx, 8
add ecx, edx
mov dword [0xe693ac], ecx
mov eax, 1
shl eax, 4
movzx ecx, byte [ebp + eax - 0x64]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x30], 0
mov edx, dword [0xe693a8]
mov dword [ebp - 0x2c], edx
mov eax, dword [0xe693ac]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x44], 1
je 0x49feb4
cmp dword [ebp - 0x48], 3
je 0x49feb4
mov ecx, dword [ebp + 0xc]
push ecx
push str.no_pal_greyscale
call fcn.004a1580
add esp, 8
push str.missing_pal_n
call fcn.004017c0
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401700
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x4a0485
mov eax, dword [0xe693a8]
cmp eax, dword [ebp + 0x10]
jg 0x49fec9
mov ecx, dword [0xe693ac]
cmp ecx, dword [ebp + 0x14]
jle 0x49ff2a
mov edx, dword [ebp + 0xc]
push edx
push str.funny_size
call fcn.004a1580
add esp, 8
mov eax, dword [0xe693ac]
push eax
mov ecx, dword [0xe693a8]
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.004017c0
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401700
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp - 0x2c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x28]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x24]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
jmp 0x4a0485
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0
jmp 0x49ff43
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x68]
jge 0x49ff70
mov ecx, dword [ebp - 0x10]
push ecx
push 1
push 1
lea edx, [ebp - 0x35]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x49ff6e
jmp 0x4a0433
jmp 0x49ff3a
cmp dword [ebp - 0x44], 0
je 0x4a01f2
mov byte [ebp - 0x36], 0
mov eax, 1
imul ecx, eax, 5
movzx edx, byte [ebp + ecx - 0x64]
mov eax, 1
imul ecx, eax, 6
movzx eax, byte [ebp + ecx - 0x64]
shl eax, 8
add edx, eax
mov dword [ebp - 0x6c], edx
mov ecx, 1
imul edx, ecx, 7
movzx eax, byte [ebp + edx - 0x64]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x6c]
imul ecx, dword [ebp - 0x70]
add ecx, 7
sar ecx, 3
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x300
jle 0x49ffe0
push 0x477
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 - 0x14]
push eax
push 1
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 4]
push ecx
call fcn.006b7750
add esp, 0x10
cmp eax, dword [ebp - 0x14]
je 0x4a0008
jmp 0x4a0433
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0xe693a8]
imul eax, dword [0xe693ac]
push eax
push 1
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [0xe693a8]
imul edx, dword [0xe693ac]
cmp eax, edx
je 0x4a0042
jmp 0x4a0433
cmp dword [0xe693a8], 0x40
jne 0x4a00f2
mov dword [ebp - 4], 0
jmp 0x4a0061
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 0x4a00a1
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 0xff
sub ecx, eax
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp + 0x18]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
and ecx, 0xf
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 4]
mov byte [edx], cl
jmp 0x4a0058
mov dword [ebp - 4], 0
jmp 0x4a00b3
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
sar ecx, 1
cmp dword [ebp - 4], ecx
jge 0x4a00f0
mov edx, dword [ebp + 0x1c]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
mov cl, byte [eax + ecx - 1]
mov byte [edx], cl
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
mov cl, byte [ebp - 0x74]
mov byte [eax + edx - 1], cl
jmp 0x4a00aa
jmp 0x4a0147
mov dword [ebp - 4], 0
jmp 0x4a0104
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
cdq
mov ecx, 3
idiv ecx
cmp dword [ebp - 4], eax
jge 0x4a0147
imul edx, dword [ebp - 4], 3
mov eax, dword [ebp + 0x1c]
movzx ecx, byte [eax + edx]
mov dword [ebp - 0x78], ecx
imul edx, dword [ebp - 4], 3
imul eax, dword [ebp - 4], 3
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x1c]
mov dl, byte [esi + edx + 2]
mov byte [ecx + eax], dl
imul eax, dword [ebp - 4], 3
mov ecx, dword [ebp + 0x1c]
mov dl, byte [ebp - 0x78]
mov byte [ecx + eax + 2], dl
jmp 0x4a00fb
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 0x2fd
jl 0x4a01ed
mov dword [ebp - 8], 0
jmp 0x4a0174
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x30
jge 0x4a018b
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x40], edx
jmp 0x4a016b
mov dword [ebp - 8], 0x2d0
jmp 0x4a019d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x300
jge 0x4a01b7
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
add edx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], edx
jmp 0x4a0194
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jle 0x4a01ed
mov dword [ebp - 8], 0
jmp 0x4a01d1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x30
jge 0x4a01ed
mov edx, dword [ebp + 0x1c]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 8]
mov cl, byte [eax + 0x2d0]
mov byte [edx], cl
jmp 0x4a01c8
jmp 0x4a0351
cmp dword [ebp - 0x48], 3
je 0x4a0238
mov edx, dword [ebp + 0xc]
push edx
push str.not_gray_scale
call fcn.004a1580
add esp, 8
push str._not_gray_scale__n
call fcn.004017c0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x4a0485
mov dword [ebp - 0x1c], 0
push 0xff
push 0
lea eax, [ebp - 0x17c]
push eax
call fcn.0067d630
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0xe693a8]
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]
imul ecx, dword [0xe693ac]
cmp eax, ecx
je 0x4a0290
jmp 0x4a0433
mov dword [ebp - 0xc], 0
jmp 0x4a02a2
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [0xe693a8]
imul eax, dword [0xe693ac]
cmp dword [ebp - 0xc], eax
jge 0x4a0351
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx eax, byte [ebp + edx - 0x17c]
test eax, eax
je 0x4a02ea
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx eax, byte [ebp + edx - 0x17c]
sub eax, 1
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
jmp 0x4a034c
imul edx, dword [ebp - 0x1c], 3
mov eax, dword [ebp + 0x18]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x1c]
mov al, byte [eax]
mov byte [ecx + edx], al
imul ecx, dword [ebp - 0x1c], 3
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x1c]
mov dl, byte [edx]
mov byte [eax + ecx + 1], dl
imul eax, dword [ebp - 0x1c], 3
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x1c]
mov cl, byte [ecx]
mov byte [edx + eax + 2], cl
mov edx, dword [ebp - 0x1c]
add edx, 1
mov eax, dword [ebp + 0x18]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov byte [ebp + ecx - 0x17c], dl
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x1c]
mov byte [edx], al
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x4a0299
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401700
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
jmp 0x4a0376
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [0xe693ac]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x34], eax
jge 0x4a0414
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
mov edx, dword [0xe693ac]
sub edx, 1
sub edx, dword [ebp - 0x34]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x20], 0
jmp 0x4a03b0
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [0xe693a8]
jge 0x4a040f
mov edx, dword [ebp - 0x4c]
imul edx, dword [0xe693a8]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x18]
mov cl, byte [eax + edx]
mov byte [ebp - 0x15], cl
mov edx, dword [ebp - 0x50]
imul edx, dword [0xe693a8]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x4c]
imul eax, dword [0xe693a8]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x18]
mov dl, byte [esi + edx]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x50]
imul eax, dword [0xe693a8]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
mov dl, byte [ebp - 0x15]
mov byte [ecx + eax], dl
jmp 0x4a03a7
jmp 0x4a036d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x4a0485
mov eax, dword [ebp + 0xc]
push eax
push str.Mystery_file_error
call fcn.004a1580
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
push str.File_error_loading_TGA_file__s_n
call fcn.004017c0
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401700
add esp, 4
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret