Function at 0x1400c09b0
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 0x1400c0a9e
xor r9d, r9d
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400bff60
test eax, eax
jne 0x1400c0a14
xor eax, eax
jmp 0x1400c10c4
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.14025f6b8
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 8], 0
jne 0x1400c0a8b
lea rcx, [0x1403e5ac8]
call fcn.1400b2d40
test eax, eax
je 0x1400c0a78
mov qword [rsp + 0x60], 0
jmp 0x1400c0a81
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
jmp 0x1400c10c4
mov rcx, qword [rsp + 0xb8]
call fcn.1400c08a0
nop
jmp 0x1400c0b71
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x20]
and eax, 0x1c
sar eax, 2
cmp eax, 3
jne 0x1400c0b71
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.14025f6b8
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 8], 0
jne 0x1400c0b40
lea rcx, [0x1403e5ab8]
call fcn.1400b2d40
test eax, eax
je 0x1400c0b2d
mov qword [rsp + 0x68], 0
jmp 0x1400c0b36
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
jmp 0x1400c10c4
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.1400b3800
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x21
je 0x1400c0fd7
cmp dword [rsp + 0x38], 0x2c
je 0x1400c0ba4
cmp dword [rsp + 0x38], 0x3b
je 0x1400c1084
jmp 0x1400c108b
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3bd0
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3bd0
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3bd0
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3bd0
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 0x1400c0c19
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 0x1400c0c47
lea rcx, str.bad_Image_Descriptor
call fcn.1400b2d40
test eax, eax
je 0x1400c0c34
mov qword [rsp + 0x78], 0
jmp 0x1400c0c3d
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
jmp 0x1400c10c4
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.1400b3800
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 0x1400c0d89
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 0x1400c0db7
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 0x1400c0e69
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
je 0x1400c0df5
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x4c], eax
jmp 0x1400c0dfd
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.1400bfe70
mov rax, qword [rsp + 0xb8]
add rax, 0x424
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x4828], rax
jmp 0x1400c0f5a
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x10]
and eax, 0x80
test eax, eax
je 0x1400c0f23
mov dword [rsp + 0x34], 0
jmp 0x1400c0e95
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x100
jge 0x1400c0ec0
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 0x1400c0e8b
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0x1c], 0
jl 0x1400c0f06
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
je 0x1400c0f06
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 0x1400c0f5a
lea rcx, str.missing_color_table
call fcn.1400b2d40
test eax, eax
je 0x1400c0f41
mov qword [rsp + 0x80], 0
jmp 0x1400c0f4d
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
jmp 0x1400c10c4
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400c0450
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400c0f83
xor eax, eax
jmp 0x1400c10c4
cmp dword [rsp + 0xc8], 0
je 0x1400c0fcd
cmp dword [rsp + 0xc8], 4
je 0x1400c0fcd
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.1400b3c80
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
jmp 0x1400c10c4
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3800
cmp eax, 0xf9
jne 0x1400c1056
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3800
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jne 0x1400c1042
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3800
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3bd0
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3800
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x1c], eax
jmp 0x1400c1056
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3950
nop
jmp 0x1400c10bf
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3800
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400c1082
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.1400b3950
nop
jmp 0x1400c1056
jmp 0x1400c10bf
mov eax, 1
jmp 0x1400c10c4
lea rcx, str.unknown_code
call fcn.1400b2d40
test eax, eax
je 0x1400c10a9
mov qword [rsp + 0x88], 0
jmp 0x1400c10b5
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
jmp 0x1400c10c4
jmp 0x1400c0b71
add rsp, 0x98
pop rdi
pop rsi
ret