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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xd8
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, r9
mov r13, r8
mov r15d, edx
mov rsi, rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x68], r9
cmp byte [rcx + 0x46], 0
je 0x140064aa6
cmp edx, 5
jne 0x1400649a2
mov r10, qword [rcx + 0x60]
test r10, r10
je 0x1400649ef
mov rax, r9
shr rax, 0x10
movzx ecx, ax
movzx eax, r12w
mov dword [rsp + 0x30], socket
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rax, qword [rsi]
mov r9, r12
mov r8, r13
mov edx, r15d
mov rcx, rsi
jmp 0x14006541f
cmp r15d, 0x10
jne 0x140064a03
mov rcx, qword [rcx + 0x60]
test rcx, rcx
je 0x1400649ef
call fcn.140064870
test eax, eax
je 0x1400650a8
mov rax, qword [rsi + 0x100]
cmp dword [rax - 0x10], 0
je 0x1400649d3
mov rcx, rsi
call fcn.14006c660
mov rcx, qword [rsi + 0x60]
mov rax, qword [rcx]
mov r9, r12
mov r8, r13
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rax + 0x50]
call qword [case.0x1400309a4.0]
mov rax, qword [rsi]
mov r9, r12
mov r8, r13
mov edx, r15d
mov rcx, rsi
jmp 0x14006541f
cmp r15d, 0x53
jne 0x140064a1a
mov rcx, qword [rcx + 0x60]
test rcx, rcx
je 0x1400649ef
mov rax, qword [rcx]
mov edx, r15d
jmp 0x1400649e5
cmp r15d, 7
jne 0x140064a47
mov rcx, qword [rcx + 0x60]
test rcx, rcx
je 0x1400649ef
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetFocus]
mov rax, qword [rsi]
mov r9, r12
mov r8, r13
mov edx, r15d
mov rcx, rsi
jmp 0x14006541f
cmp r15d, 0x24
jne 0x140064a7d
mov rax, qword [rcx]
mov edx, 0x24
mov rax, qword [rax + 0x58]
call qword [case.0x1400309a4.0]
test r12, r12
je 0x14006542a
mov ecx, dword [rsi + 0x38]
mov dword [r12 + 0x18], ecx
mov ecx, dword [rsi + 0x3c]
mov dword [r12 + 0x1c], ecx
jmp 0x14006542a
cmp r15d, 0x20a
jne 0x1400649ef
mov rcx, qword [rcx + 0x60]
test rcx, rcx
je 0x1400649ef
mov rax, qword [rcx]
mov edx, r15d
mov rax, qword [rax + 0x50]
jmp 0x140065423
cmp r15d, 0x10
jne 0x140064ade
call fcn.140064870
test eax, eax
je 0x1400650a8
mov rax, qword [rsi + 0x100]
cmp dword [rax - 0x10], 0
je 0x140064ace
mov rcx, rsi
call fcn.14006c660
mov dword [rsi + 0x54], 0
mov byte [rsi + 0x44], 1
jmp 0x140065378
cmp r15d, 0x81
jne 0x140064b26
mov eax, dword [0x1401fbc90]
cmp eax, 0x40
jae 0x140065378
mov edx, dword [rcx + 0x58]
mov ecx, eax
add rcx, rcx
lea r10, [0x1401fb890]
mov rax, qword [rsi + 8]
mov qword [r10 + rcx*8], rax
mov eax, dword [0x1401fbc90]
add rax, rax
mov dword [r10 + rax*8 + 8], edx
inc dword [0x1401fbc90]
jmp 0x140065378
cmp r15d, 2
jne 0x140064c4a
mov rcx, qword [0x1401fbc98]
test rcx, rcx
je 0x140064b6e
cmp byte [rsi + 0x48], 0
jne 0x140064b6e
mov dword [rsp + 0x88], 1
mov rax, qword [rsi + 8]
mov qword [rsp + 0x90], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x88]
mov rax, qword [rax + 8]
call qword [case.0x1400309a4.0]
call fcn.140052ec0
test rax, rax
je 0x140064b9f
call fcn.140052ec0
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x28]
mov rdx, rsi
mov rcx, r8
call qword [case.0x1400309a4.0]
lea rcx, [rsi + 0xa8]
call fcn.14006c780
mov edx, dword [0x1401fbc90]
cmp edx, 0x40
jae 0x140064c1d
lea r9d, [rdx - 1]
test r9d, r9d
js 0x140064c1d
mov r8, qword [rsi + 8]
movsxd rcx, r9d
mov rax, rcx
shl rax, 4
lea r10, [0x1401fb890]
add rax, r10
nop dword [rax + rax]
cmp qword [rax], r8
je 0x140064be4
dec r9d
sub rax, 0x10
sub rcx, 1
jns 0x140064bd0
jmp 0x140064c1d
mov eax, edx
sub eax, r9d
sub eax, 1
je 0x140064c15
mov r8d, eax
shl r8, 4
lea edx, [r9 + 1]
shl rdx, 4
add rdx, r10
mov ecx, r9d
shl rcx, 4
add rcx, r10
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [0x1401fbc90]
dec edx
mov dword [0x1401fbc90], edx
cmp byte [rsi + 0x44], 0
jne 0x140065378
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rsi + 8]
call qword [sym.imp.sciter_x.dll_SciterProcND]
jmp 0x140065378
cmp r15d, 7
jne 0x140064c59
mov byte [rcx + 0x40], 1
jmp 0x140065378
cmp r15d, 8
jne 0x140064c68
mov byte [rcx + 0x40], 0
jmp 0x140065378
lea eax, [rdx - 0x7f]
cmp eax, 1
jbe 0x14006541c
cmp r15d, 0x104
jne 0x140064c96
cmp byte [rcx + 0x45], 0
je 0x140065378
cmp r13, 0x73
je 0x1400650a8
jmp 0x140065378
cmp r15d, 0x100
jne 0x140064eea
cmp byte [rcx + 0x42], 0
je 0x140064d53
cmp r13, 0x1b
jne 0x140064d53
movzx edx, byte [rcx + 0x43]
mov rcx, qword [rcx + 8]
call fcn.140064790
test al, al
je 0x1400650a8
cmp byte [rsi + 0x41], 0
je 0x140064d18
lea edx, [r13 - 0x2b]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1e
test al, 1
mov rcx, qword [rsi + 8]
je 0x140064cf4
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140064d18
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0xfffffff0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1e
test al, 1
mov rax, qword [rsi + 8]
je 0x140064d3b
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14006542a
cmp r13, 0xd
jne 0x140065378
mov dword [rsp + 0x58], 0
mov qword [rsp + 0xb0], 0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.sciter_x.dll_SciterGetFocusElement]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.sciter_x.dll_SciterControlGetType]
mov eax, dword [rsp + 0x58]
cmp eax, 0xa
ja 0x140064dad
mov ecx, 0x694
bt ecx, eax
jb 0x140065378
mov qword [rsp + 0x88], 0
lea rdx, [rsp + 0x88]
mov rcx, qword [rsi + 8]
call qword [sym.imp.sciter_x.dll_SciterGetRootElement]
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_Sciter_UseElement]
xor ecx, ecx
test eax, eax
cmove rcx, rbx
mov qword [rsp + 0x50], rcx
lea rdx, str._enter_default_
lea rcx, [rsp + 0x50]
call fcn.140043040
mov rdi, rax
mov rcx, rax
call qword [sym.imp.sciter_x.dll_Sciter_UseElement]
xor ebx, ebx
test eax, eax
cmove rbx, rdi
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x140064eb5
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterGetElementState]
mov eax, dword [rsp + 0x44]
shr eax, 7
test al, 1
jne 0x140064e9e
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterControlGetType]
cmp dword [rsp + 0x44], 4
jne 0x140064e9e
xor r9d, r9d
mov r8, rbx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterPostEvent]
nop
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_Sciter_UnuseElement]
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140064e8e
call qword [sym.imp.sciter_x.dll_Sciter_UnuseElement]
mov qword [rsp + 0x50], 0
xor eax, eax
jmp 0x14006542a
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 7]
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterSetElementState]
nop
test rbx, rbx
je 0x140064ec3
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_Sciter_UnuseElement]
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140064edc
call qword [sym.imp.sciter_x.dll_Sciter_UnuseElement]
mov qword [rsp + 0x50], 0
jmp 0x140065378
cmp r15d, 5
jne 0x140064f37
test dword [rcx + 0x50], 0x200
je 0x140064f0d
cmp r13, 1
jne 0x140064f0d
lea edx, [r15 + 4]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
test dword [rsi + 0x50], 0x400
je 0x140065378
cmp r13, 2
jne 0x140065378
lea edx, [r13 + 7]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140065378
cmp r15d, 0x18
jne 0x140064f61
mov eax, dword [rcx + 0x50]
bt eax, 9
jae 0x140065378
cmp r12, 1
jne 0x140065378
test al, 4
jne 0x1400650a8
jmp 0x140065378
cmp r15d, 0x24
jne 0x140065036
lea edx, [r15 - 0x22]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_MonitorFromWindow]
test rax, rax
je 0x140065025
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], rcx
mov dword [rsp + 0x88], 0x28
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [0x1401f2038]
mov eax, dword [rsp + 0x9c]
sub eax, dword [rsp + 0x8c]
cdq
xor eax, edx
sub eax, edx
mov dword [r12 + 0x10], eax
mov eax, dword [rsp + 0xa0]
sub eax, dword [rsp + 0x90]
cdq
xor eax, edx
sub eax, edx
mov dword [r12 + 0x14], eax
mov eax, dword [rsp + 0xa4]
sub eax, dword [rsp + 0x9c]
cdq
xor eax, edx
sub eax, edx
mov dword [r12 + 8], eax
mov eax, dword [rsp + 0xa8]
sub eax, dword [rsp + 0xa0]
cdq
xor eax, edx
sub eax, edx
mov dword [r12 + 0xc], eax
mov rax, qword [r12 + 8]
mov qword [r12 + 0x20], rax
mov rax, qword [rsi]
mov r9, r12
mov r8, r13
mov rcx, rsi
jmp 0x140064a50
cmp r15d, 0x53
jne 0x1400650af
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowContextHelpId]
test eax, eax
je 0x1400650a8
mov rcx, qword [0x1401fb800]
mov rax, qword [rcx]
lea edx, [r15 - 0x4d]
mov rax, qword [rax]
call qword [case.0x1400309a4.0]
mov rcx, rax
mov dword [rsp + 0x20], 0
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call sub.VCRUNTIME140.dll___RTDynamicCast
mov rdi, rax
test rax, rax
je 0x1400650a8
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x48]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowContextHelpId]
mov edx, eax
mov rcx, rdi
mov rax, rbx
call qword [case.0x1400309a4.0]
xor eax, eax
jmp 0x14006542a
cmp r15d, 0x84
jne 0x140065321
cmp qword [rcx + 0x108], 0
je 0x140065378
movsx edi, r12w
mov dword [rsp + 0x48], edi
shr r12, 0x10
movsx ebx, r12w
mov dword [rsp + 0x4c], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, 0xfffffff0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x12
jae 0x1400651fc
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1400651fc
mov edx, dword [rsp + 0x78]
cmp edi, edx
jl 0x140065173
lea eax, [rdx + 4]
cmp edi, eax
jge 0x140065173
mov eax, dword [rsp + 0x7c]
cmp ebx, eax
jl 0x14006514d
add eax, 4
cmp ebx, eax
jge 0x14006514d
lea eax, [r15 - 0x77]
jmp 0x14006542a
mov ecx, dword [rsp + 0x84]
lea eax, [rcx - 4]
cmp ebx, eax
mov eax, 0xa
jl 0x14006542a
mov edx, reloc.WS2_32.dll_recv
cmp ebx, ecx
cmovl eax, edx
jmp 0x14006542a
mov ecx, dword [rsp + 0x80]
lea eax, [rcx - 4]
cmp edi, eax
jl 0x1400651c4
cmp edi, ecx
jge 0x1400651c4
mov eax, dword [rsp + 0x7c]
cmp ebx, eax
jl 0x14006519e
add eax, 4
cmp ebx, eax
jge 0x14006519e
mov eax, ntohs
jmp 0x14006542a
mov ecx, dword [rsp + 0x84]
lea eax, [rcx - 4]
cmp ebx, eax
mov eax, reloc.WS2_32.dll_inet_addr
jl 0x14006542a
mov edx, send
cmp ebx, ecx
cmovl eax, edx
jmp 0x14006542a
mov ecx, dword [rsp + 0x7c]
cmp ebx, ecx
jl 0x1400651dd
lea eax, [rcx + 4]
cmp ebx, eax
jge 0x1400651dd
mov eax, reloc.WS2_32.dll_inet_ntoa
jmp 0x14006542a
mov r8d, dword [rsp + 0x84]
lea eax, [r8 - 4]
cmp ebx, eax
jl 0x140065204
cmp ebx, r8d
jge 0x140065204
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x14006542a
mov ecx, dword [rsp + 0x7c]
mov edx, dword [rsp + 0x78]
mov qword [rsp + 0x88], 0
sub edi, edx
mov dword [rsp + 0x48], edi
sub ebx, ecx
mov dword [rsp + 0x4c], ebx
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsi + 8]
call qword [sym.imp.sciter_x.dll_SciterFindElement]
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x140065415
mov rcx, rdi
call qword [sym.imp.sciter_x.dll_Sciter_UseElement]
xor ebx, ebx
test eax, eax
cmove rbx, rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [0x1401a7a2c]
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterGetAttributeByName]
mov rax, qword [rsp + 0x48]
lea rdx, [0x1401a3ce0]
test rax, rax
cmovne rdx, rax
lea r8, [0x1401aa830]
mov rcx, 0xffffffffffffffff
nop dword [rax]
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400652c2
add rcx, 2
cmp rcx, 0xf
je 0x140065300
movzx eax, word [r8 + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x1400652a0
lea rdx, str.window_caption
lea rcx, [rsp + 0x50]
call fcn.140062ce0
test rax, rax
jne 0x1400652fb
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400652e8
call qword [sym.imp.sciter_x.dll_Sciter_UnuseElement]
mov qword [rsp + 0x50], 0
mov eax, 1
jmp 0x14006542a
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14006530e
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_Sciter_UnuseElement]
mov qword [rsp + 0x50], 0
mov eax, 2
jmp 0x14006542a
cmp r15d, 0x20b
jne 0x140065378
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov rax, r13
shr rax, 0x10
cmp ax, 2
sete dl
lea rcx, [rsp + 0x88]
call fcn.140042b00
nop
mov r8, rax
lea rdx, str.main.pageview.navigatePageHistory
lea rcx, [rsp + 0xb0]
call fcn.1400544b0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.sciter_x.dll_ValueClear]
mov dword [rsp + 0x5c], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, r13
mov edx, r15d
mov rcx, qword [rsi + 8]
call qword [sym.imp.sciter_x.dll_SciterProcND]
cmp dword [rsp + 0x5c], 0
jne 0x14006542a
jmp 0x1400653be
cmp r15d, 0x4e
jne 0x1400653f9
mov rax, qword [rsi]
mov r9, r12
mov r8, r13
mov edx, r15d
mov rcx, rsi
mov rax, qword [rax + 0x58]
call qword [case.0x1400309a4.0]
test rax, rax
jne 0x14006542a
mov r9, r12
mov r8, r13
mov edx, 0xbc4e
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14006542a
cmp r15d, 0x469
jne 0x140065408
movzx eax, byte [rsi + 0x47]
jmp 0x14006542a
cmp r15d, 0x20a
jne 0x1400649ef
mov eax, 1
jmp 0x14006542a
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [case.0x1400309a4.0]
nop
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140160900
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret