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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
mov ecx, dword [eax]
push edi
mov dword [esp + 0x50], ecx
xor edi, edi
mov edx, dword [ecx]
xor ecx, ecx
mov cl, byte [eax + 0x29]
mov dword [esp + 0x38], edi
cmp ecx, 1
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x2c], ecx
jg 0x1007981e
mov esi, 1
jmp 0x1007982d
mov esi, ecx
sub esi, 2
neg esi
sbb esi, esi
and esi, 5
add esi, 5
mov eax, dword [eax + 8]
mov dword [esp + 0x34], esi
cmp eax, edi
je 0x10079843
cmp word [esp + 0x7c], di
je 0x10079843
mov eax, dword [eax]
jmp 0x10079845
xor eax, eax
add ecx, 8
mov dword [esp + 0x30], eax
imul ecx, esi
lea eax, [eax + ecx*4]
add eax, eax
push eax
push edx
call fcn.100299e0
mov ebx, eax
add esp, 8
cmp ebx, edi
mov dword [esp + 0x54], ebx
jne 0x10079875
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x64
ret
mov edx, esi
mov ecx, 8
shl edx, 5
xor eax, eax
mov dword [esp + 0x18], ebx
lea ebp, [edx + ebx]
mov edi, ebp
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
lea ecx, [esi + esi]
mov esi, dword [esp + 0x2c]
test ecx, ecx
lea edi, [edx + ebp]
jle 0x100798b2
lea edx, [esi*4]
lea eax, [ebx + 0x18]
mov dword [eax], edi
add eax, 0x20
add edi, edx
dec ecx
jne 0x100798a8
mov edx, dword [esp + 0x30]
test edx, edx
je 0x100798d1
lea ecx, [edx + edx]
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x44], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x1a8]
cmp eax, 0x2e
jb 0x100798e5
mov eax, 0x2e
mov word [ebp + 0x10], ax
mov eax, 1
test edx, edx
je 0x100798fc
test esi, esi
jle 0x100798f9
or edx, 0xffffffff
mov byte [ebp + 0x16], dl
test esi, esi
mov dword [esp + 0x24], 0
jle 0x10079c60
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x10079c03
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
add edx, 0x10
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x78]
mov ebp, dword [eax + 0x10]
test ebp, ebp
je 0x10079be9
mov eax, dword [esp + 0x14]
mov edi, dword [ebp]
mov esi, dword [ebp + 4]
mov cl, byte [eax + 6]
mov byte [esp + 0x13], cl
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
lea ecx, [eax - 0x10]
mov eax, dword [eax - 0x10]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
not eax
not ecx
and eax, edi
and ecx, esi
or eax, ecx
jne 0x10079bde
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x64]
mov edi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x68]
mov eax, esi
and eax, ecx
mov ecx, edi
and ecx, ebx
or eax, ecx
jne 0x10079bde
mov eax, dword [esp + 0x14]
mov cx, word [ebp + 0x12]
mov bx, word [eax]
mov dx, word [eax + 4]
mov ax, word [ebp + 0x14]
push edx
add ax, bx
push eax
push ecx
call fcn.10078060
add esp, 8
push eax
call fcn.10078060
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov ax, word [ebp + 0x16]
add ax, bx
or edi, ecx
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x1b]
add esp, 8
or esi, edx
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x78]
test al, al
mov dword [esp + 0x6c], esi
jge 0x10079a18
mov eax, dword [esp + 0x24]
mov cx, word [edi + 0x22]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x18]
push ebp
push eax
lea eax, [edx - 0x10]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
push edi
call fcn.10079db0
add esp, 0x1c
mov byte [esp + 0x13], al
jmp 0x10079a2a
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov al, byte [esp + 0x13]
test al, al
jl 0x10079a73
movsx esi, al
mov eax, dword [esp + 0x30]
cmp esi, eax
jge 0x10079a73
mov ebx, dword [esp + 0x44]
cmp word [ebx + esi*2], 0
jne 0x10079a5f
push esi
push eax
mov eax, dword [esp + 0x84]
push eax
push edi
call fcn.1007a460
add esp, 0x10
mov word [ebx + esi*2], ax
mov cx, word [ebx + esi*2]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.10078060
add esp, 8
jmp 0x10079a77
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x10079ab5
mov ecx, dword [edx]
mov ebx, dword [esp + 0x6c]
cmp ecx, ebx
jne 0x10079aa7
mov ecx, dword [edx + 4]
mov ebx, dword [esp + 0x70]
cmp ecx, ebx
jne 0x10079aa7
mov cl, byte [edx + 0x16]
mov bl, byte [esp + 0x13]
xor cl, bl
test cl, cl
jns 0x10079ab1
inc esi
add edx, 0x20
cmp esi, edi
jl 0x10079a85
jmp 0x10079ab5
cmp esi, edi
jl 0x10079afb
cmp edi, dword [esp + 0x34]
jl 0x10079ae9
mov ecx, dword [esp + 0x40]
cmp ax, cx
jg 0x10079bde
jne 0x10079ada
mov dx, word [esp + 0x20]
cmp dx, word [esp + 0x3c]
jge 0x10079bde
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
shl edx, 5
add edx, ecx
jmp 0x10079b19
mov ecx, dword [esp + 0x18]
mov edx, edi
inc edi
shl edx, 5
mov dword [esp + 0x1c], edi
add edx, ecx
jmp 0x10079b19
mov cx, word [edx + 0x12]
cmp cx, ax
jl 0x10079bde
jne 0x10079b19
mov cx, word [edx + 0x10]
cmp cx, word [esp + 0x48]
jle 0x10079bde
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi - 0x10]
or ecx, edi
mov edi, dword [esi - 0xc]
or edi, ebx
mov dword [edx], ecx
mov dword [edx + 4], edi
mov ecx, dword [esp + 0x5c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x60]
mov word [edx + 0x12], ax
mov ax, word [esp + 0x20]
mov dword [edx + 0xc], ecx
mov cx, word [esp + 0x48]
mov word [edx + 0x14], ax
mov eax, dword [esp + 0x24]
mov word [edx + 0x10], cx
mov cl, byte [esp + 0x13]
mov edi, dword [edx + 0x18]
mov byte [edx + 0x16], cl
mov esi, dword [esi + 8]
shl eax, 2
mov ecx, eax
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx], ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jl 0x10079bde
mov eax, dword [esp + 0x18]
mov ecx, 1
cmp ebx, ecx
mov dword [esp + 0x38], 0
mov si, word [eax + 0x12]
mov di, word [eax + 0x10]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
jle 0x10079bde
add eax, 0x32
mov dx, word [eax]
cmp dx, si
jg 0x10079bc4
jne 0x10079bce
cmp word [eax + 2], di
jle 0x10079bce
mov di, word [eax + 2]
mov esi, edx
mov dword [esp + 0x38], ecx
inc ecx
add eax, 0x20
cmp ecx, ebx
jl 0x10079bb4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov ebp, dword [ebp + 0x30]
test ebp, ebp
jne 0x1007993a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
add ecx, 0x20
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], eax
jne 0x1007992b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
cmp ecx, edx
mov dword [esp + 0x24], ecx
jl 0x1007990c
mov ecx, eax
test ecx, ecx
jne 0x10079c60
mov eax, dword [esp + 0x50]
push str.no_query_solution
push eax
call fcn.1004aa00
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push ecx
push edx
call fcn.10029770
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov edi, dword [esp + 0x28]
cmp eax, 1
jle 0x10079c7f
lea ecx, [edi + 0x20]
dec eax
mov dx, word [edi + 0x12]
cmp dx, word [ecx + 0x12]
jle 0x10079c79
mov edi, ecx
add ecx, 0x20
dec eax
jne 0x10079c6d
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x78]
xor edx, edx
test ebx, ebx
jle 0x10079cbf
lea ecx, [esi + 0x304]
mov eax, dword [edi + 0x18]
add ecx, 0x48
mov eax, dword [eax + edx*4]
mov dword [ecx - 0x34], eax
mov al, byte [eax + 0x10]
mov byte [ecx - 0x48], al
mov ebp, dword [esi + 4]
and eax, 0xff
lea eax, [eax + eax*4]
shl eax, 4
inc edx
mov eax, dword [eax + ebp + 0x38]
cmp edx, ebx
mov dword [ecx - 0x68], eax
jl 0x10079c93
mov ax, word [esi + 0x22]
test ah, 4
je 0x10079d0e
test ah, 2
jne 0x10079d0e
mov al, byte [esi + 0x28]
test al, al
jne 0x10079d0e
cmp word [esp + 0x7c], 0
je 0x10079d0e
mov edx, dword [edi + 0x18]
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [ebx - 1]
mov eax, dword [edx + ebx*4 - 4]
mov edx, dword [esi + 0xc]
push eax
push ecx
push 0x200
push edi
push edx
push esi
call fcn.10079db0
mov ecx, dword [esi + 0xc]
add esp, 0x1c
movsx eax, al
cmp eax, dword [ecx]
jne 0x10079d0e
mov byte [esi + 0x28], 2
mov ecx, dword [esi + 8]
xor ebp, ebp
cmp ecx, ebp
je 0x10079d86
mov dx, word [esi + 0x22]
test dh, 2
je 0x10079d2e
movsx eax, byte [edi + 0x16]
cmp eax, dword [ecx]
jne 0x10079d48
mov byte [esi + 0x28], 2
jmp 0x10079d48
mov al, byte [edi + 0x16]
test al, al
mov byte [esi + 0x24], al
jge 0x10079d3c
mov byte [esi + 0x24], 0
mov eax, dword [edi + 8]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x1c], eax
test dh, 8
je 0x10079d86
movsx edx, byte [esi + 0x24]
cmp edx, dword [ecx]
jne 0x10079d86
mov edx, dword [edi + 0x18]
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
push eax
mov eax, dword [edx + ebx*4 - 4]
dec ebx
push eax
push ebx
push ebp
push edi
push ecx
push esi
call fcn.10079db0
mov ecx, dword [esi + 8]
add esp, 0x1c
movsx eax, al
cmp eax, dword [ecx]
sete dl
mov byte [esi + 0x25], dl
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ax, word [edi + 0x10]
push ecx
push edx
mov word [esi + 0x20], ax
call fcn.10029770
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret