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

Disassembly:
sub esp, 0x7c
push ebx
xor eax, eax
push ebp
push edi
mov edi, dword [esp + 0x8c]
mov ecx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
mov dword [esp + 0x64], eax
push 0xa
mov dword [esp + 0x38], ecx
mov ebx, dword [eax]
mov al, byte [edi + 0x2c]
mov ecx, dword [esp + 0x94]
movzx edx, al
mov byte [esp + 0x12], al
cmp edx, 2
pop eax
mov ebp, eax
mov dword [esp + 0x84], ebx
push 5
pop eax
cmove ebp, eax
mov dword [esp + 0x2c], edx
xor eax, eax
mov dword [esp + 0x28], ecx
inc eax
cmp edx, eax
cmovbe ebp, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x5c], ebp
test eax, eax
je 0x1017205d
test cx, cx
je 0x1017205d
mov ecx, dword [eax]
jmp 0x1017205f
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x1c], ecx
shl eax, 2
mov dword [esp + 0x50], eax
add eax, 0x20
imul eax, ebp
add eax, ecx
add eax, eax
cdq
push edx
push eax
push ebx
call fcn.10141b1e
add esp, 0xc
mov dword [esp + 0x68], eax
test eax, eax
jne 0x10172092
push 7
pop eax
jmp 0x10172789
push esi
mov esi, ebp
mov dword [esp + 0x1c], eax
shl esi, 5
push 0x20
push 0
lea ebx, [esi + eax]
push ebx
mov dword [esp + 0x70], ebx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x78]
lea ecx, [esi + ebx]
mov esi, dword [esp + 0x60]
lea eax, [ebp*2]
add esp, 0xc
add edx, 0x18
mov dword [edx], ecx
dec eax
add ecx, esi
lea edx, [edx + 0x20]
test eax, eax
jg 0x101720c5
mov edx, dword [esp + 0x20]
test edx, edx
je 0x101720f0
lea eax, [edx + edx]
mov dword [esp + 0x40], ecx
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x68]
push 0x30
pop ecx
mov eax, dword [eax + 0x88]
cmp eax, ecx
cmovb ecx, eax
xor esi, esi
inc esi
mov word [ebx + 0x10], cx
mov cl, byte [esp + 0x12]
mov eax, esi
mov dword [esp + 0x3c], eax
test edx, edx
je 0x10172127
movzx eax, dl
or edx, 0xffffffff
test cl, cl
cmovne eax, edx
mov byte [ebx + 0x16], al
mov eax, esi
and dword [esp + 0x28], 0
mov ebp, dword [esp + 0x30]
test cl, cl
je 0x10172549
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x10172322
lea ebp, [ebx + 0x10]
mov dword [esp + 0x18], ebp
mov ebx, dword [edi + 0x40]
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x10172302
mov al, byte [ebp + 6]
xorps xmm0, xmm0
mov byte [esp + 0x13], al
lea eax, [ebp - 0x10]
mov edx, dword [eax]
mov ecx, edx
mov esi, dword [eax + 4]
not ecx
and ecx, dword [ebx]
mov dword [esp + 0x80], eax
mov eax, esi
not eax
movlpd qword [esp + 0x70], xmm0
and eax, dword [ebx + 4]
or ecx, eax
jne 0x1017253d
and edx, dword [ebx + 8]
and esi, dword [ebx + 0xc]
or edx, esi
jne 0x1017253d
test dword [ebx + 0x24], 0x4000
je 0x101721b6
cmp word [ebp], 3
jl 0x1017253d
mov ax, word [ebx + 0x14]
add ax, word [ebp]
movzx eax, ax
push eax
movzx eax, word [ebx + 0x12]
push eax
call fcn.1014cdff
movzx ecx, ax
movzx eax, word [ebp + 4]
push eax
push ecx
call fcn.1014cdff
mov ecx, dword [esp + 0x28]
add esp, 0x10
movzx ebp, ax
mov ax, word [ebx + 0x16]
mov dword [esp + 0x24], ebp
add ax, word [ecx]
lea edx, [ecx - 0x10]
movzx eax, ax
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 8]
or eax, dword [edx]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0xc]
or eax, dword [edx + 4]
mov dword [esp + 0x78], eax
mov al, byte [esp + 0x13]
test al, al
jns 0x10172361
lea eax, [esp + 0x70]
push eax
movzx eax, word [edi + 0x28]
push ebx
push dword [esp + 0x30]
push eax
push edx
push dword [edi + 8]
push edi
call fcn.1017176d
mov ecx, dword [esp + 0x90]
add esp, 0x1c
mov byte [esp + 0x13], al
mov dword [esp + 0x48], ecx
test al, al
js 0x10172254
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x44], ecx
jmp 0x1017236f
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], eax
movzx edx, bp
sub ebp, 2
mov dword [esp + 0x24], ebp
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov ebp, dword [esp + 0x1c]
test esi, esi
jle 0x10172420
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x78]
mov bl, byte [esp + 0x13]
cmp dword [ebp], eax
jne 0x10172299
cmp dword [ebp + 4], edi
jne 0x10172299
mov al, byte [ebp + 0x16]
xor al, bl
jge 0x101722a1
mov eax, dword [esp + 0x58]
inc ecx
add ebp, 0x20
cmp ecx, esi
jl 0x10172284
mov edi, dword [esp + 0x90]
mov ebx, dword [esp + 0x50]
cmp ecx, esi
jge 0x10172420
movzx eax, word [ebp + 0x12]
cmp ax, dx
jl 0x101722e4
jne 0x10172462
movzx eax, word [ebp + 0x10]
mov ecx, dword [esp + 0x5c]
cmp ax, cx
jl 0x101722e4
jne 0x10172462
mov eax, dword [esp + 0x24]
cmp word [ebp + 0x14], ax
jg 0x10172462
xor esi, esi
inc esi
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x50], ebx
test ebx, ebx
jne 0x10172160
mov eax, dword [esp + 0x3c]
add ebp, 0x20
sub eax, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], eax
jne 0x10172151
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
inc dword [esp + 0x28]
mov eax, edx
mov edx, ebx
mov ebx, eax
mov eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x28], ebp
jl 0x1017213c
test ecx, ecx
jne 0x10172549
push str.no_query_solution
push dword [esp + 0x6c]
call fcn.10143429
pop ecx
pop ecx
jmp 0x10172774
mov edx, dword [ecx - 8]
mov ecx, dword [ecx - 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
movzx esi, al
cmp esi, dword [esp + 0x20]
jge 0x1017225c
mov eax, dword [esp + 0x40]
lfence
movzx eax, word [eax + esi*2]
mov ecx, eax
test ax, ax
jne 0x10172409
mov eax, dword [esp + 0x2c]
movzx ebp, ax
mov eax, dword [esp + 0x20]
sub eax, esi
imul eax, eax, 0x64
cdq
idiv dword [esp + 0x20]
cdq
push edx
push eax
call fcn.1014cd7a
add ax, word [esp + 0x34]
movzx edx, word [edi + 0x28]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
test edx, 0x4000
je 0x101723d3
movzx ecx, word [edi + 0x2a]
cmp cx, ax
jge 0x101723d3
mov ebp, ecx
jmp 0x101723e9
test edx, 0x100
je 0x101723e9
push 0xa
pop ecx
cmp ax, cx
jle 0x101723e9
add eax, 0xfffffff6
movzx ebp, ax
push ebp
call fcn.10128383
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x70]
add ecx, 0xffffffce
add ax, cx
movzx ecx, ax
mov word [edx + esi*2], ax
push ecx
push ebp
call fcn.1014cdff
pop ecx
pop ecx
push 5
pop ecx
add ax, cx
movzx edx, ax
jmp 0x10172266
mov ecx, dword [esp + 0x60]
cmp esi, ecx
jl 0x10172446
mov eax, dword [esp + 0x38]
cmp dx, ax
jg 0x101722e4
jne 0x10172446
mov eax, dword [esp + 0x24]
cmp ax, word [esp + 0x34]
jge 0x101722e4
cmp esi, ecx
lea eax, [esi + 1]
mov ebp, esi
cmovge ebp, dword [esp + 0x4c]
shl ebp, 5
add ebp, dword [esp + 0x1c]
cmp esi, ecx
cmovge eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov esi, dword [esp + 0x80]
or eax, dword [esi + 4]
or ecx, dword [esi]
mov esi, dword [esp + 0x28]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov word [ebp + 0x10], ax
mov eax, dword [esp + 0x24]
mov word [ebp + 0x14], ax
mov al, byte [esp + 0x13]
mov byte [ebp + 0x16], al
mov eax, dword [esp + 0x18]
shl esi, 2
push esi
mov dword [ebp], ecx
mov word [ebp + 0x12], dx
push dword [eax + 8]
push dword [ebp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
mov dword [esi + eax], ebx
xor esi, esi
inc esi
cmp ecx, ebp
jl 0x101722eb
mov eax, dword [esp + 0x1c]
and dword [esp + 0x4c], 0
movzx ecx, word [eax + 0x12]
mov dword [esp + 0x38], ecx
movzx ecx, word [eax + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, esi
cmp ebp, esi
jbe 0x101722e7
mov edi, dword [esp + 0x38]
add eax, 0x34
mov ebx, dword [esp + 0x34]
movzx edx, word [eax - 2]
cmp dx, di
jg 0x10172514
jne 0x1017251d
cmp word [eax], bx
jle 0x1017251d
movzx ebx, word [eax]
mov edi, edx
mov dword [esp + 0x4c], ecx
inc ecx
add eax, 0x20
cmp ecx, ebp
jl 0x10172504
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x90]
jmp 0x101722e7
mov ecx, dword [esp + 0x14]
xor esi, esi
inc esi
jmp 0x101722ef
cmp eax, esi
jle 0x10172566
lea ecx, [ebx + 0x20]
lea edx, [eax - 1]
mov ax, word [ebx + 0x12]
cmp ax, word [ecx + 0x12]
cmovg ebx, ecx
add ecx, 0x20
sub edx, 1
jne 0x10172553
xor esi, esi
cmp byte [esp + 0x12], 0
jbe 0x1017259e
lea edx, [edi + 0x324]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
mov dword [edx + 0x14], eax
mov al, byte [eax + 0x10]
mov byte [edx], al
lea edx, [edx + 0x58]
movzx eax, al
imul ecx, eax, 0x48
inc esi
mov eax, dword [edi + 4]
mov eax, dword [ecx + eax + 0x34]
mov dword [edx - 0x88], eax
cmp esi, ebp
jl 0x10172575
mov ax, word [edi + 0x28]
mov ecx, 0x180
and ax, cx
add ecx, 0xffffff80
cmp ax, cx
jne 0x101725f3
cmp byte [edi + 0x2f], 0
jne 0x101725f3
cmp word [esp + 0x2c], 0
je 0x101725f3
lea eax, [esp + 0x80]
push eax
mov eax, dword [ebx + 0x18]
push dword [eax + ebp*4 - 4]
lea eax, [ebp - 1]
push eax
push 0x80
push ebx
push dword [edi + 0xc]
push edi
call fcn.1017176d
movsx ecx, al
add esp, 0x1c
mov eax, dword [edi + 0xc]
cmp ecx, dword [eax]
jne 0x101725f3
mov byte [edi + 0x2f], 2
mov eax, dword [edi + 0x30]
mov ebp, dword [edi + 8]
and eax, 0xfffffffb
mov dword [esp + 0x80], eax
mov dword [edi + 0x30], eax
test ebp, ebp
je 0x1017276a
movzx edx, word [edi + 0x28]
mov al, byte [ebx + 0x16]
mov byte [esp + 0x13], al
test dl, dl
jns 0x10172632
movsx eax, al
cmp eax, dword [ebp]
jne 0x10172629
mov byte [edi + 0x2f], 2
mov ch, byte [esp + 0x12]
jmp 0x101726ff
mov byte [edi + 0x2d], al
mov esi, ebp
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [edi + 0x4c], ecx
mov cl, byte [esp + 0x13]
mov dword [edi + 0x48], eax
test cl, cl
jg 0x101726dc
cmp byte [esp + 0x12], 0
mov byte [edi + 0x2d], 0
jbe 0x101726d2
mov ecx, dword [esp + 0x54]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + ecx - 4]
mov ecx, 0x104
mov dword [esp + 0x80], eax
mov edx, dword [eax + 0x24]
mov eax, edx
and eax, ecx
cmp eax, ecx
setne cl
bt edx, 0xc
setae al
test al, cl
je 0x101726d2
lea eax, [esp + 0x78]
xorps xmm0, xmm0
push eax
push dword [esp + 0x84]
mov eax, dword [esp + 0x38]
dec eax
movlpd qword [esp + 0x80], xmm0
push eax
push 0x800
push ebx
push ebp
push edi
call fcn.1017176d
mov esi, dword [edi + 8]
add esp, 0x1c
movsx eax, al
cmp eax, dword [esi]
jne 0x101726d2
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
or dword [edi + 0x30], 4
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], ecx
movzx eax, word [edi + 0x28]
mov ch, byte [esp + 0x12]
jmp 0x10172703
mov ch, byte [esp + 0x12]
mov eax, edx
test ch, ch
je 0x10172703
mov esi, ebp
cmp cl, 1
jne 0x10172703
test dl, 3
je 0x10172703
mov eax, dword [esp + 0x80]
or eax, 4
mov dword [edi + 0x30], eax
mov esi, ebp
mov eax, edx
test eax, 0x200
je 0x1017276a
movsx eax, byte [edi + 0x2d]
cmp eax, dword [esi]
jne 0x1017276a
test ch, ch
je 0x1017276a
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x80]
push eax
mov eax, dword [ebx + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x84], xmm0
push dword [eax + ecx - 4]
mov eax, dword [esp + 0x38]
dec eax
push eax
push 0
push ebx
push esi
push edi
call fcn.1017176d
movsx ecx, al
add esp, 0x1c
mov eax, dword [edi + 8]
cmp ecx, dword [eax]
jne 0x1017276a
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
or dword [edi + 0x30], 8
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], ecx
mov ax, word [ebx + 0x10]
xor esi, esi
mov word [edi + 0x34], ax
push dword [esp + 0x6c]
push dword [esp + 0x8c]
call fcn.10141a5b
pop ecx
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x7c
ret