Function at 0x1402248b0
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.140345720
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 6
jne 0x140224a68
mov rcx, qword [rsp + 0xf0]
call fcn.14021ed80
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
jmp 0x14022490d
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jge 0x140224a63
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 0x14022497c
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x88], rax
jge 0x14022497c
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 0x140224981
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 0x140224a5e
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov rax, qword [rsp + 0xf0]
cmp ecx, dword [rax + 0x18]
jge 0x140224a0d
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
sub eax, ecx
mov dword [rsp + 0xc0], eax
jmp 0x140224a1f
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 0x140224a5c
mov dword [rsp + 0x20], 7
jmp 0x140224a63
jmp 0x140224902
jmp 0x140224bee
cmp dword [rsp + 0x20], 0
jne 0x140224bee
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax]
cmp dword [rcx + 8], eax
jg 0x140224ad7
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x10]
cmp dword [rcx], eax
jg 0x140224ad7
mov rax, qword [rsp + 0xf8]
cmp dword [rax + 4], 0
jl 0x140224ad2
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x228]
cmp dword [rcx + 4], eax
jge 0x140224ad2
mov dword [rsp + 0x20], 3
jmp 0x140224bee
mov rax, qword [rsp + 0xf8]
cmp dword [rax], 0
jl 0x140224bee
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x22c]
cmp dword [rcx], eax
jge 0x140224bee
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x40], 0
jmp 0x140224b23
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 0x140224bee
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 0x140224bc3
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xa8], rax
jge 0x140224bc3
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 0x140224bc8
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 0x140224be9
mov dword [rsp + 0x20], 8
jmp 0x140224bee
jmp 0x140224b18
mov eax, dword [rsp + 0x20]
add rsp, 0xd8
pop rdi
pop rsi
ret