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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x128]
mov eax, dword [rax]
cmp dword [rsp + 0x98], eax
jb 0x140047b0a
xor al, al
jmp 0x1400481ab
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x128]
mov ecx, dword [rsp + 0x98]
mov rax, qword [rax + 8]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x88]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x90]
imul eax, dword [rcx + 0x7c]
mov rcx, qword [rsp + 0x90]
add eax, dword [rcx + 0x78]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xb0]
mov dword [rax], 0
mov rax, qword [rsp + 0xb0]
mov dword [rax + 4], 0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x98]
mov rcx, qword [rsp + 0x90]
add eax, dword [rcx + 0xf8]
mov rcx, qword [rsp + 0x90]
sub eax, dword [rcx + 0x8c]
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x7c]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x40]
shr eax, 2
and eax, 1
test eax, eax
je 0x140047c09
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x80]
mov dword [rsp + 0x38], eax
jmp 0x140047c11
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax + 0x70]
sub eax, ecx
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x4c]
cmp dword [rax + 0xc], ecx
jle 0x140047c46
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 0xc], ecx
cmp qword [rsp + 0xa0], 0
jne 0x140047c58
mov al, 1
jmp 0x1400481ab
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x140047c70
xor al, al
jmp 0x1400481ab
mov rax, qword [rsp + 0x90]
mov ecx, dword [0x14013d3b0]
mov eax, dword [rax + 0x7c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax]
shr eax, 2
and eax, 1
test eax, eax
je 0x140047caa
mov dword [rsp + 0x20], 0
jmp 0x140047cd5
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x98]
mov rcx, qword [rsp + 0xa0]
add eax, dword [rcx + 0x2c]
mov rcx, qword [rsp + 0x90]
sub eax, dword [rcx + 0x8c]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
or eax, 1
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x14], ecx
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x18]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 8]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x10]
mov dword [rax + 0x20], ecx
mov eax, dword [rsp + 0x20]
add eax, 6
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x108]
cmp qword [rsp + 0xa0], rax
jne 0x140047ece
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x30]
imul eax, dword [0x14013d3ac]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x40]
shr eax, 9
and eax, 1
test eax, eax
je 0x140047e37
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x34]
and eax, 1
test eax, eax
jne 0x140047e25
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
or eax, 2
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x24], ecx
mov eax, dword [0x14013d3ac]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x30], eax
mov eax, dword [0x14013d3ac]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0
je 0x140047ece
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
or eax, 4
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x34], ecx
mov eax, dword [0x14013d3ac]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x40], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [0x14013d3ac]
lea eax, [rax + rcx + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
or eax, 8
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x44], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x1c]
sub eax, 6
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4c], eax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 8]
mov dword [rax + 0x48], ecx
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x10]
mov dword [rax + 0x50], ecx
mov eax, dword [rsp + 0xa8]
and eax, 1
test eax, eax
je 0x1400481a9
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400481a9
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
call fcn.14004be10
lea r9, [rsp + 0x60]
mov rax, qword [rsp + 0xa0]
mov r8d, dword [rax + 4]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.140047510
movzx eax, al
test eax, eax
je 0x140048193
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x10], 0
je 0x140047fce
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
jmp 0x140047fdf
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 2
div rcx
lea r9, [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x140048193
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
or eax, 0x10
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x54], ecx
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x5c], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + 0x7c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0xb0]
add eax, dword [rcx + 8]
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x58], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + 0x7c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x10]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x60], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x24]
and eax, 1
test eax, eax
je 0x140048123
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x44]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0xb0]
mov edx, dword [rsp + 0x30]
mov ecx, dword [rcx + 0x4c]
sub ecx, edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x54], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x44]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x5c], eax
jmp 0x140048167
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x24]
and eax, 2
test eax, eax
je 0x140048167
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x4c]
mov dword [rax + 0x5c], ecx
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 0x5c]
sub eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x54], eax
mov rax, qword [rsp + 0xb0]
lea rcx, [rsp + 0x60]
lea rdi, [rax + 0x68]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x78], rcx
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov al, 1
add rsp, 0x78
pop rdi
pop rsi
ret