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

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [rcx]
movzx r12d, dx
xor edx, edx
mov qword [rsp + 0xa0], rax
mov rbp, rcx
mov dword [rsp + 0x60], edx
movzx ecx, byte [rcx + 0x40]
mov r14d, 1
mov r8, qword [rax]
movzx edi, dx
mov qword [rsp + 0xb0], r8
movzx r15d, dx
mov qword [rsp + 0x88], rdx
mov dword [rsp + 0x40], ecx
cmp ecx, r14d
ja 0x140220d45
mov ebx, r14d
jmp 0x140220d55
cmp ecx, 2
mov ebx, 0xa
mov eax, 5
cmove ebx, eax
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x5c], ebx
test rax, rax
je 0x140220d70
test r12w, r12w
je 0x140220d70
mov esi, dword [rax]
mov dword [rsp + 0x68], esi
jmp 0x140220d76
mov esi, edx
mov dword [rsp + 0x68], edx
lea eax, [rcx + 4]
imul eax, ebx
lea ecx, [rsi + rax*8]
add ecx, ecx
movsxd rdx, ecx
mov rcx, r8
call fcn.1401e6000
mov qword [rsp + 0xa8], rax
mov rdx, rax
test rax, rax
jne 0x140220da4
lea eax, [rdx + 7]
jmp 0x1402214d3
movsxd r8, dword [rsp + 0x40]
xorps xmm0, xmm0
mov eax, ebx
mov r11, rdx
shl rax, 5
mov qword [rsp + 0xc8], r13
lea r13, [rax + rdx]
movups xmmword [r13], xmm0
mov qword [rsp + 0x70], rdx
lea r9, [r8*8]
lea rcx, [rax + r13]
mov qword [rsp + 0x98], r13
movups xmmword [r13 + 0x10], xmm0
lea eax, [rbx + rbx]
mov qword [rsp + 0x78], r8
add rdx, 0x18
mov qword [rdx], rcx
lea rdx, [rdx + 0x20]
add rcx, r9
dec eax
test eax, eax
jg 0x140220df0
test esi, esi
je 0x140220e23
movsxd r8, esi
xor edx, edx
add r8, r8
mov qword [rsp + 0x88], rcx
call sub.VCRUNTIME140.dll_memset
mov r11, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x40]
mov rax, qword [rsp + 0xa0]
mov ecx, gethostbyname
mov eax, dword [rax + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov word [r13 + 0x10], cx
mov ecx, r14d
test esi, esi
je 0x140220e5a
test r8b, r8b
movzx eax, sil
mov edx, 0xffffffff
cmovne eax, edx
mov byte [r13 + 0x16], al
xor r9d, r9d
mov edx, r9d
mov dword [rsp + 0x64], edx
test r8b, r8b
je 0x14022122c
mov esi, r9d
mov qword [rsp + 0x48], r9
nop word [rax + rax]
mov dword [rsp + 0x58], r9d
mov r8d, r9d
test ecx, ecx
jle 0x1402210fe
lea r12, [r13 + 0x10]
mov eax, ecx
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x90], rax
mov r13, qword [rbp + 0x50]
test r13, r13
je 0x1402210d7
mov r10, qword [r12 - 0x10]
movzx ebp, byte [r12 + 6]
mov rax, r10
not rax
mov qword [rsp + 0x80], r9
test qword [r13], rax
jne 0x1402210ba
mov rsi, qword [r13 + 8]
test r10, rsi
jne 0x140221204
test dword [r13 + 0x28], 0x4000
je 0x140220ef6
cmp word [r12], 3
jl 0x140221204
movzx r11d, word [r12]
movzx ecx, word [r13 + 0x12]
movzx edx, r11w
add dx, word [r13 + 0x14]
call fcn.1401f40a0
movzx edx, word [r12 + 4]
movzx ecx, ax
call fcn.1401f40a0
add r11w, word [r13 + 0x16]
or rsi, r10
mov word [rsp + 0x128], r11w
movzx r14d, ax
test bpl, bpl
jns 0x14022116a
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea r8, [r12 - 0x10]
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0x28], r13
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x110]
mov rcx, rax
movzx r9d, word [rax + 0x3c]
mov rdx, qword [rax + 0x10]
call fcn.140220500
mov r12, qword [rsp + 0x80]
movzx ebp, al
test al, al
jns 0x14022116f
movzx edx, r14w
add r14w, 0xfffe
mov r11, qword [rsp + 0x70]
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov ecx, r9d
mov rbx, r11
test r8d, r8d
jle 0x140220fc4
cmp qword [rbx], rsi
jne 0x140220fb9
movzx eax, bpl
xor al, byte [rbx + 0x16]
jge 0x1402211c5
inc ecx
add rbx, 0x20
cmp ecx, r8d
jl 0x140220fa7
mov r9d, dword [rsp + 0x5c]
cmp r8d, r9d
jl 0x140220fe3
cmp dx, di
jg 0x14022120e
jne 0x140220fe3
cmp r14w, r15w
jge 0x14022120e
movzx ecx, word [rsp + 0x128]
cmp r8d, r9d
mov eax, r8d
cmovge eax, dword [rsp + 0x60]
movsxd rbx, eax
lea eax, [r8 + 1]
shl rbx, 5
add rbx, r11
cmp r8d, r9d
cmovge eax, r8d
mov dword [rsp + 0x58], eax
mov rax, qword [r13 + 8]
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
or rax, qword [r8 - 0x10]
mov r8, rsi
mov qword [rbx + 8], r12
mov r12, qword [rsp + 0x50]
mov word [rbx + 0x10], cx
mov rcx, qword [rbx + 0x18]
mov qword [rbx], rax
mov word [rbx + 0x12], dx
mov word [rbx + 0x14], r14w
mov byte [rbx + 0x16], bpl
mov rdx, qword [r12 + 8]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x18]
mov r14d, 1
mov r8d, dword [rsp + 0x58]
mov r9d, dword [rsp + 0x5c]
mov r11, qword [rsp + 0x70]
mov qword [rsi + rax], r13
cmp r8d, r9d
jl 0x1402210b7
movzx edi, word [r11 + 0x12]
xor eax, eax
movzx r15d, word [r11 + 0x10]
mov edx, r14d
mov dword [rsp + 0x60], eax
cmp r9d, edx
jbe 0x1402210b7
lea rax, [r11 + 0x34]
nop dword [rax]
movzx ecx, word [rax - 2]
cmp cx, di
jg 0x1402210a1
jne 0x1402210ac
cmp word [rax], r15w
jle 0x1402210ac
movzx r15d, word [rax]
movzx edi, cx
mov dword [rsp + 0x60], edx
inc edx
add rax, 0x20
cmp edx, r9d
jl 0x140221090
xor r9d, r9d
mov r13, qword [r13 + 0x40]
test r13, r13
jne 0x140220eb0
mov rbp, qword [rsp + 0x110]
mov rax, qword [rsp + 0x90]
add r12, 0x20
sub rax, 1
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x90], rax
jne 0x140220ea3
mov edx, dword [rsp + 0x64]
mov r13, qword [rsp + 0x98]
mov rax, r11
mov qword [rsp + 0x70], r13
inc edx
mov qword [rsp + 0x98], rax
add rsi, 8
mov dword [rsp + 0x64], edx
mov r11, r13
mov r13, rax
mov ecx, r8d
mov qword [rsp + 0x48], rsi
cmp edx, dword [rsp + 0x40]
jl 0x140220e80
test r8d, r8d
jne 0x140221223
mov rcx, qword [rsp + 0xa0]
lea rdx, str.no_query_solution
call fcn.1401e7f60
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call fcn.1401e5f20
mov eax, r14d
jmp 0x1402214cb
mov r12, qword [r12 - 8]
mov ecx, dword [rsp + 0x68]
movzx r9d, bpl
cmp r9d, ecx
jge 0x140220f86
mov rdx, qword [rsp + 0x88]
movzx eax, word [rdx + r9*2]
lea rbx, [rdx + r9*2]
test ax, ax
jne 0x1402211b1
movzx edx, word [rsp + 0x118]
mov r8d, ecx
mov rcx, qword [rsp + 0x110]
call fcn.140221c60
mov word [rbx], ax
movzx edx, ax
movzx ecx, r14w
call fcn.1401f40a0
lea edx, [rax + 5]
jmp 0x140220f8f
cmp ecx, r8d
jge 0x140220fc4
cmp word [rbx + 0x12], dx
jl 0x1402211f9
movzx ecx, word [rsp + 0x128]
jne 0x14022100f
cmp word [rbx + 0x10], cx
jl 0x1402211f9
jne 0x14022100f
cmp word [rbx + 0x14], r14w
jg 0x14022100f
mov r12, qword [rsp + 0x50]
mov r14d, 1
mov rsi, qword [rsp + 0x48]
jmp 0x1402210ba
mov r12, qword [rsp + 0x50]
mov r14d, 1
mov rsi, qword [rsp + 0x48]
jmp 0x1402210b7
movzx r12d, word [rsp + 0x118]
movsxd rdx, ecx
mov rbx, r13
cmp rdx, 1
jle 0x140221260
lea rcx, [r13 + 0x32]
dec rdx
nop
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x140221253
movsxd rbx, r14d
shl rbx, 5
add rbx, r13
inc r14d
add rcx, 0x20
sub rdx, 1
jne 0x140221240
mov r13d, dword [rsp + 0x40]
test r13b, r13b
je 0x1402212b4
mov r8, r9
lea rdx, [rbp + 0x3cc]
mov r9d, r13d
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
lea rdx, [rdx + 0x60]
lea r8, [r8 + 8]
mov rcx, qword [r8 + rax - 8]
mov qword [rdx - 0x44], rcx
movzx eax, byte [rcx + 0x10]
imul rcx, rax, 0x70
mov byte [rdx - 0x60], al
mov rax, qword [rbp + 8]
mov ecx, dword [rcx + rax + 0x4c]
mov dword [rdx - 0x90], ecx
sub r9, 1
jne 0x140221280
movzx eax, word [rbp + 0x3c]
mov ecx, 0x180
and ax, cx
mov ecx, CMapStringToOb::HashKey
cmp ax, cx
jne 0x140221325
cmp byte [rbp + 0x43], 0
jne 0x140221325
test r12w, r12w
mov r12, qword [rsp + 0x78]
je 0x14022132a
mov rax, qword [rbx + 0x18]
lea rdx, [rsp + 0x110]
mov qword [rsp + 0x30], rdx
lea ecx, [r13 - 1]
mov rdx, qword [rbp + 0x18]
mov r9d, 0x80
mov r8, rbx
mov rax, qword [rax + r12*8 - 8]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
mov rcx, rbp
call fcn.140220500
movsx ecx, al
mov rax, qword [rbp + 0x18]
cmp ecx, dword [rax]
jne 0x14022132a
mov byte [rbp + 0x43], 2
jmp 0x14022132a
mov r12, qword [rsp + 0x78]
mov ecx, dword [rbp + 0x44]
mov r10, qword [rbp + 0x10]
and ecx, 0xfffffffb
mov dword [rbp + 0x44], ecx
test r10, r10
je 0x1402214ac
movzx r9d, word [rbp + 0x3c]
movsx r8d, byte [rbx + 0x16]
test r9b, r9b
jns 0x140221360
cmp r8d, dword [r10]
jne 0x140221358
mov byte [rbp + 0x43], 2
mov rdx, r10
jmp 0x140221434
mov byte [rbp + 0x41], r8b
mov rdx, r10
mov rax, qword [rbx + 8]
mov qword [rbp + 0x60], rax
test r8b, r8b
jg 0x140221405
mov byte [rbp + 0x41], 0
test r13b, r13b
je 0x140221434
mov rax, qword [rbx + 0x18]
mov r11, qword [rax + r12*8 - 8]
mov eax, dword [r11 + 0x28]
and eax, 0x104
cmp eax, 0x104
setne cl
bt dword [r11 + 0x28], 0xc
setae al
test al, cl
je 0x140221434
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x30], rcx
lea eax, [r13 - 1]
mov qword [rsp + 0x28], r11
mov rcx, rbp
mov r9d, 0x800
mov word [rsp + 0x20], ax
mov r8, rbx
call fcn.140220500
mov rdx, qword [rbp + 0x10]
movsx ecx, al
cmp ecx, dword [rdx]
jne 0x140221434
mov rax, qword [rsp + 0x110]
or dword [rbp + 0x44], 4
mov qword [rbp + 0x60], rax
jmp 0x140221434
lea rax, [rbp + 0x41]
lea r15, [rbp + 0x60]
test r13b, r13b
je 0x14022143c
lea rax, [rbp + 0x41]
lea r15, [rbp + 0x60]
cmp r8b, 1
jne 0x14022143c
lea rax, [rbp + 0x41]
lea r15, [rbp + 0x60]
test r9b, 3
je 0x14022143c
or ecx, 4
mov dword [rbp + 0x44], ecx
lea rax, [rbp + 0x41]
lea r15, [rbp + 0x60]
mov ecx, 0x200
test word [rbp + 0x3c], cx
je 0x1402214ac
movsx eax, byte [rax]
cmp eax, dword [rdx]
jne 0x1402214ac
test r13b, r13b
je 0x1402214ac
mov rax, qword [rbx + 0x18]
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x30], rcx
dec r13w
xor r9d, r9d
mov qword [rsp + 0x110], 0
mov r8, rbx
mov rcx, rbp
mov rax, qword [rax + r12*8 - 8]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r13w
call fcn.140220500
movsx ecx, al
mov rax, qword [rbp + 0x10]
cmp ecx, dword [rax]
jne 0x1402214ac
mov rax, qword [rsp + 0x110]
or dword [rbp + 0x44], 8
mov qword [r15], rax
movzx eax, word [rbx + 0x10]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov word [rbp + 0x48], ax
call fcn.1401e5f20
xor eax, eax
mov r13, qword [rsp + 0xc8]
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret