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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.140337270
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 6
jne 0x14022f8c8
mov rcx, qword [rsp + 0xf0]
call fcn.140229b30
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
jmp 0x14022f76d
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jge 0x14022f8c3
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xf0]
add rax, 0x78
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x88], 0
jl 0x14022f7dc
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x88], rax
jge 0x14022f7dc
mov rax, qword [rsp + 0x88]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 8]
mov qword [rsp + 0x78], rax
jmp 0x14022f7e1
call sub.mfc90u.dll_AfxOleUnregisterServerClass
lea rdi, [rsp + 0xb0]
mov rsi, qword [rsp + 0x78]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x30]
lea rsi, [rsp + 0xb0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x44], rax
mov rdx, qword [rsp + 0x44]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14022f8be
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov rax, qword [rsp + 0xf0]
cmp ecx, dword [rax + 0x18]
jge 0x14022f86d
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
sub eax, ecx
mov dword [rsp + 0xc0], eax
jmp 0x14022f87f
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0xc0], eax
mov ecx, dword [rsp + 0xc0]
mov eax, dword [rsp + 0x34]
add eax, ecx
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x4c], rax
mov rdx, qword [rsp + 0x4c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14022f8bc
mov dword [rsp + 0x20], 7
jmp 0x14022f8c3
jmp 0x14022f762
jmp 0x14022fa4e
cmp dword [rsp + 0x20], 0
jne 0x14022fa4e
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax]
cmp dword [rcx + 8], eax
jg 0x14022f937
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x10]
cmp dword [rcx], eax
jg 0x14022f937
mov rax, qword [rsp + 0xf8]
cmp dword [rax + 4], 0
jl 0x14022f932
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x228]
cmp dword [rcx + 4], eax
jge 0x14022f932
mov dword [rsp + 0x20], 3
jmp 0x14022fa4e
mov rax, qword [rsp + 0xf8]
cmp dword [rax], 0
jl 0x14022fa4e
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x22c]
cmp dword [rcx], eax
jge 0x14022fa4e
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x40], 0
jmp 0x14022f983
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x250]
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0x40]
cmp rax, qword [rsp + 0x90]
jge 0x14022fa4e
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x54], rax
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xf0]
add rax, 0x240
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa8], 0
jl 0x14022fa23
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xa8], rax
jge 0x14022fa23
mov rax, qword [rsp + 0xa8]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xa0]
add rax, qword [rcx + 8]
mov qword [rsp + 0x98], rax
jmp 0x14022fa28
call sub.mfc90u.dll_AfxOleUnregisterServerClass
mov rdx, qword [rsp + 0x54]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14022fa49
mov dword [rsp + 0x20], 8
jmp 0x14022fa4e
jmp 0x14022f978
mov eax, dword [rsp + 0x20]
add rsp, 0xd8
pop rdi
pop rsi
ret