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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xc0
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x18], 0
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
mov ecx, dword [rcx + 8]
sub ecx, eax
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x1c], ecx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xa50]
mov qword [rsp + 0x78], rax
mov edx, 0x58
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x5c], eax
mov edx, 0x58
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x4c], eax
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r11, qword [rsp + 0xd0]
mov eax, dword [r11 + 0xb80]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
and rax, 0xffff
cwde
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
shr rax, 0x10
and rax, 0xffff
cwde
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0xd0]
add rcx, 0x530
mov edx, 1
call fcn.1401520a0
sub eax, 1
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0xb38]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x3c], 0
mov rdx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax]
mov eax, dword [rdx + 8]
sub eax, ecx
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x60c]
mov dword [rsp + 0x84], eax
mov r8d, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x84]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x20], 0
jl 0x140179fd6
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jg 0x140179fd6
mov rcx, qword [rsp + 0xd0]
add rcx, 0x530
mov edx, dword [rsp + 0x20]
call fcn.140154d20
mov dword [rsp + 0xa8], eax
jmp 0x140179fe1
mov dword [rsp + 0xa8], 0xffffffff
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xffffffff
jne 0x140179ff8
jmp 0x14017a2f9
mov rcx, qword [rsp + 0xd0]
add rcx, 0x530
mov edx, dword [rsp + 0x60]
call fcn.140152140
mov r8d, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x5c]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x638], 0xffffffff
jne 0x14017a065
cmp dword [rsp + 0x20], 0
jne 0x14017a04a
mov dword [rsp + 0xac], 1
jmp 0x14017a055
mov dword [rsp + 0xac], 0
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0xb0], eax
jmp 0x14017a09f
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rsp + 0x60]
cmp dword [rcx + 0x638], eax
jne 0x14017a086
mov dword [rsp + 0xb4], 1
jmp 0x14017a091
mov dword [rsp + 0xb4], 0
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14017a0f9
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x778]
mov ebx, eax
imul ebx, dword [rsp + 0x50]
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x770]
imul eax, dword [rsp + 0x50]
add eax, dword [rsp + 0x70]
add eax, ebx
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], 0
cmp dword [rsp + 0x44], 0
jle 0x14017a17e
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
call qword [rax + reloc.mfc90u.dll_CDHtmlControlSink::AddRef]
test eax, eax
jne 0x14017a1ca
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov rax, qword [rsp + 0xd8]
cmp ecx, dword [rax + 0x1c]
jle 0x14017a17e
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x1c]
cmp dword [rsp + 0x70], eax
jg 0x14017a17e
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x408]
test eax, eax
je 0x14017a1ca
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov rax, qword [rsp + 0xd8]
cmp ecx, dword [rax + 0x1c]
jg 0x14017a1b8
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x70]
mov eax, dword [rsp + 0x44]
add eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x14017a1c8
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x68], 1
jmp 0x14017a1d2
mov dword [rsp + 0x68], 1
cmp dword [rsp + 0x68], 0
je 0x14017a2d7
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x44], 0
jle 0x14017a220
cmp dword [rsp + 0x6c], 0
jne 0x14017a220
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x38], eax
jge 0x14017a20a
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xb8], eax
jmp 0x14017a215
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x74], eax
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x3c]
mov dword [rcx + 0x18], eax
mov ecx, dword [rsp + 0x74]
add ecx, 1
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x1c], ecx
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x48]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x34]
mov dword [rcx + 0x24], eax
mov rax, qword [rsp + 0xd0]
add rax, 0x798
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.14018f750
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x44], 0
mov ecx, dword [rsp + 0x74]
mov eax, dword [rsp + 0x3c]
add eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0xb3c]
cmp dword [rsp + 0x20], eax
jg 0x14017a2f9
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x3c], eax
jl 0x140179fa4
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x3c]
mov dword [rcx + 0x18], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
mov ecx, dword [rcx + 8]
sub ecx, eax
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x1c], ecx
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x48]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x34]
mov dword [rcx + 0x24], eax
mov rax, qword [rsp + 0xd0]
add rax, 0x798
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x98], rax
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.14018f750
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0xc0
pop rbx
ret