Function at 0x1400c8770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 8], 0
jne 0x1400c885e
xor r9d, r9d
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400c7d20
test eax, eax
jne 0x1400c87d4
xor eax, eax
jmp 0x1400c8e84
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
shl eax, 2
mov rcx, qword [rsp + 0xb8]
imul eax, dword [rcx + 4]
cdqe
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14025d568
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 8], 0
jne 0x1400c884b
lea rcx, [0x14031fdd8]
call fcn.1400bab00
test eax, eax
je 0x1400c8838
mov qword [rsp + 0x60], 0
jmp 0x1400c8841
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
jmp 0x1400c8e84
mov rcx, qword [rsp + 0xb8]
call fcn.1400c8660
nop
jmp 0x1400c8931
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x20]
and eax, 0x1c
sar eax, 2
cmp eax, 3
jne 0x1400c8931
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
shl eax, 2
mov rcx, qword [rsp + 0xb8]
imul eax, dword [rcx + 4]
cdqe
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14025d568
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 8], 0
jne 0x1400c8900
lea rcx, [0x14031fdc8]
call fcn.1400bab00
test eax, eax
je 0x1400c88ed
mov qword [rsp + 0x68], 0
jmp 0x1400c88f6
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
jmp 0x1400c8e84
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb8]
mov eax, dword [rax]
imul eax, dword [rcx + 4]
shl eax, 2
cdqe
mov rcx, qword [rsp + 0xb8]
mov rdi, qword [rcx + 8]
mov rsi, qword [rsp + 0x70]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb5c0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x21
je 0x1400c8d97
cmp dword [rsp + 0x38], 0x2c
je 0x1400c8964
cmp dword [rsp + 0x38], 0x3b
je 0x1400c8e44
jmp 0x1400c8e4b
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb990
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb990
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb990
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb990
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb8]
cmp eax, dword [rcx]
jg 0x1400c89d9
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb8]
cmp eax, dword [rcx + 4]
jle 0x1400c8a07
lea rcx, str.bad_Image_Descriptor
call fcn.1400bab00
test eax, eax
je 0x1400c89f4
mov qword [rsp + 0x78], 0
jmp 0x1400c89fd
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
jmp 0x1400c8e84
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
shl eax, 2
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4854], eax
mov eax, dword [rsp + 0x3c]
shl eax, 2
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x483c], eax
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x40]
imul ecx, dword [rax + 0x4854]
mov eax, ecx
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4840], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x483c]
mov ecx, dword [rsp + 0x44]
lea eax, [rax + rcx*4]
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4844], eax
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x48]
imul ecx, dword [rax + 0x4854]
mov eax, ecx
mov rcx, qword [rsp + 0xb8]
add eax, dword [rcx + 0x4840]
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4848], eax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x483c]
mov dword [rax + 0x484c], ecx
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x4840]
mov dword [rax + 0x4850], ecx
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb5c0
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4838], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x4838]
and eax, 0x40
test eax, eax
je 0x1400c8b49
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x4854]
shl eax, 3
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4834], eax
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0x4830], 3
jmp 0x1400c8b77
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x4854]
mov dword [rax + 0x4834], ecx
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0x4830], 0
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x4838]
and eax, 0x80
test eax, eax
je 0x1400c8c29
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
je 0x1400c8bb5
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x4c], eax
jmp 0x1400c8bbd
mov dword [rsp + 0x4c], 0xffffffff
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x4838]
and eax, 7
mov ecx, 2
mov dword [rsp + 0x58], ecx
movzx ecx, al
mov eax, dword [rsp + 0x58]
shl eax, cl
mov rcx, qword [rsp + 0xb8]
add rcx, 0x424
mov r9d, dword [rsp + 0x4c]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0xb0]
call fcn.1400c7c30
mov rax, qword [rsp + 0xb8]
add rax, 0x424
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x4828], rax
jmp 0x1400c8d1a
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x10]
and eax, 0x80
test eax, eax
je 0x1400c8ce3
mov dword [rsp + 0x34], 0
jmp 0x1400c8c55
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x100
jge 0x1400c8c80
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax*4 + 0x24]
mov ecx, 1
imul rcx, rcx, 3
mov byte [rax + rcx], 0xff
jmp 0x1400c8c4b
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0x1c], 0
jl 0x1400c8cc6
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
je 0x1400c8cc6
mov rax, qword [rsp + 0xb8]
movsxd rax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax*4 + 0x24]
mov ecx, 1
imul rcx, rcx, 3
mov byte [rax + rcx], 0
mov rax, qword [rsp + 0xb8]
add rax, 0x24
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x4828], rax
jmp 0x1400c8d1a
lea rcx, str.missing_color_table
call fcn.1400bab00
test eax, eax
je 0x1400c8d01
mov qword [rsp + 0x80], 0
jmp 0x1400c8d0d
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
jmp 0x1400c8e84
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400c8210
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400c8d43
xor eax, eax
jmp 0x1400c8e84
cmp dword [rsp + 0xc8], 0
je 0x1400c8d8d
cmp dword [rsp + 0xc8], 4
je 0x1400c8d8d
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov r9d, dword [rax]
mov r8d, dword [rsp + 0xc8]
mov edx, 4
mov rcx, qword [rsp + 0x50]
call fcn.1400bba40
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
jmp 0x1400c8e84
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb5c0
cmp eax, 0xf9
jne 0x1400c8e16
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb5c0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jne 0x1400c8e02
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb5c0
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb990
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb5c0
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x1c], eax
jmp 0x1400c8e16
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb710
nop
jmp 0x1400c8e7f
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb5c0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400c8e42
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.1400bb710
nop
jmp 0x1400c8e16
jmp 0x1400c8e7f
mov eax, 1
jmp 0x1400c8e84
lea rcx, str.unknown_code
call fcn.1400bab00
test eax, eax
je 0x1400c8e69
mov qword [rsp + 0x88], 0
jmp 0x1400c8e75
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
jmp 0x1400c8e84
jmp 0x1400c8931
add rsp, 0x98
pop rdi
pop rsi
ret