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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x68]
push ebx
movzx ebx, byte [eax + 0x28]
push ebp
mov ebp, dword [eax]
push esi
mov esi, dword [ebp]
xor ecx, ecx
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
cmp ebx, 1
jne 0x101596c3
mov edi, ebx
jmp 0x101596d2
mov edi, ebx
sub edi, 2
neg edi
sbb edi, edi
and edi, 5
add edi, 5
lea ecx, [ebx + 8]
imul ecx, edi
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x38], edi
call fcn.100fc2b0
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x101596fc
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
xor eax, eax
mov ecx, edi
shl ecx, 5
lea edx, [ecx + esi]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
lea eax, [edi + edi]
add ecx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edx
test eax, eax
jle 0x10159744
lea edi, [ebx*4]
add esi, 0x18
mov dword [esi], ecx
dec eax
add esi, 0x20
add ecx, edi
test eax, eax
jg 0x10159738
mov eax, dword [ebp + 0x1bc]
cmp eax, 0x2e
jb 0x10159754
mov eax, 0x2e
mov word [edx + 0x10], ax
mov eax, dword [esp + 0x78]
xor ebp, ebp
mov esi, 1
mov dword [esp + 0x44], ebp
cmp dword [eax + 8], ebp
je 0x101597a8
mov edi, dword [esp + 0x7c]
cmp di, bp
je 0x101597a8
movsx eax, di
cdq
push edx
push eax
call fcn.100ff170
movzx eax, ax
add esp, 8
cmp ax, 0x21
jle 0x1015979b
cwde
sub eax, 0x21
add eax, edi
movzx ecx, ax
mov dword [esp + 0x44], ecx
jmp 0x101597ac
xor eax, eax
mov eax, edi
movzx ecx, ax
mov dword [esp + 0x44], ecx
jmp 0x101597ac
mov byte [edx + 0x15], 1
cmp ebx, ebp
mov dword [esp + 0x2c], ebp
jle 0x10159cd5
jmp 0x101597c0
mov dword [esp + 0x30], 0
test esi, esi
jle 0x10159bea
mov edx, dword [esp + 0x34]
add edx, 0x14
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], esi
nop
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10159bda
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
mov cl, byte [eax + 1]
mov dl, byte [eax]
mov ebx, dword [eax - 0x14]
add eax, 0xffffffec
mov byte [esp + 0x16], cl
mov ecx, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov eax, ebx
mov byte [esp + 0x17], dl
mov edx, dword [esp + 0x1c]
not eax
and eax, dword [edx]
not ecx
and ecx, dword [edx + 4]
or eax, ecx
jne 0x10159bc7
mov eax, edx
mov edi, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov ecx, edi
and ecx, dword [esp + 0x70]
mov eax, ebp
and eax, ebx
or eax, ecx
jne 0x10159bc7
mov eax, dword [esp + 0x20]
movzx eax, word [eax - 4]
mov ecx, edx
mov dx, word [ecx + 0x14]
movzx ecx, word [ecx + 0x12]
add dx, ax
movzx eax, dx
cmp cx, ax
jl 0x101598a6
movsx edx, ax
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x1015987f
movzx eax, cx
mov dword [esp + 0x18], eax
jmp 0x101598dd
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x10159890
inc ecx
movzx ecx, cx
mov dword [esp + 0x18], ecx
jmp 0x101598dd
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx eax, dx
mov dword [esp + 0x18], eax
jmp 0x101598dd
movsx edx, cx
movsx ecx, ax
lea esi, [edx + 0x31]
cmp ecx, esi
jle 0x101598bc
movzx ecx, ax
mov dword [esp + 0x18], ecx
jmp 0x101598dd
lea esi, [edx + 0x1f]
cmp ecx, esi
jle 0x101598c9
inc eax
movzx edx, ax
jmp 0x101598d9
sub ecx, edx
movzx cx, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add cx, ax
movzx edx, cx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
movzx ecx, word [eax - 2]
mov si, word [esp + 0x18]
cmp si, cx
jl 0x1015991d
movsx ecx, cx
movsx eax, si
lea edx, [ecx + 0x31]
cmp eax, edx
jg 0x10159959
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x10159909
inc dword [esp + 0x18]
jmp 0x10159954
sub eax, ecx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add si, ax
mov word [esp + 0x18], si
jmp 0x10159959
movsx edx, si
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x1015992f
movzx ecx, cx
jmp 0x10159950
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x10159940
inc ecx
movzx edx, cx
mov dword [esp + 0x18], edx
jmp 0x10159954
sub eax, edx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx ecx, ax
mov dword [esp + 0x18], ecx
mov si, word [esp + 0x18]
mov eax, dword [esp + 0x20]
movzx ecx, word [eax - 4]
mov edx, dword [esp + 0x1c]
mov dx, word [edx + 0x16]
or edi, dword [esp + 0x70]
add dx, cx
movzx ecx, dx
or ebp, ebx
cmp byte [esp + 0x16], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edi
jne 0x10159a60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [esp + 0x80]
movzx edx, word [eax + 0x22]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
add ecx, 0xffffffec
push ecx
mov ecx, dword [eax + 8]
push ecx
push eax
call fcn.10159100
add esp, 0x1c
sub eax, 0
je 0x101599d9
sub eax, 1
jne 0x10159a6e
mov byte [esp + 0x17], 1
mov byte [esp + 0x16], 1
jmp 0x10159a6e
mov edx, dword [esp + 0x44]
cmp si, dx
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 1
jl 0x10159a1a
movsx ecx, dx
movsx eax, si
lea edx, [ecx + 0x31]
cmp eax, edx
jg 0x10159a6e
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x10159a0b
inc dword [esp + 0x18]
mov si, word [esp + 0x18]
jmp 0x10159a6e
sub eax, ecx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add si, ax
jmp 0x10159a6e
movsx ecx, si
movsx eax, dx
lea esi, [ecx + 0x31]
cmp eax, esi
jle 0x10159a33
movzx ecx, dx
mov dword [esp + 0x18], ecx
mov si, cx
jmp 0x10159a6e
lea esi, [ecx + 0x1f]
cmp eax, esi
jle 0x10159a47
inc edx
movzx edx, dx
mov dword [esp + 0x18], edx
mov si, dx
jmp 0x10159a6e
sub eax, ecx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, dx
movzx ecx, ax
mov dword [esp + 0x18], ecx
mov si, cx
jmp 0x10159a6e
mov edx, dword [eax - 0xc]
mov eax, dword [eax - 8]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
xor ecx, ecx
test edi, edi
jle 0x10159ac3
mov edx, dword [esp + 0x48]
mov eax, dword [ebp]
cmp eax, dword [esp + 0x64]
jne 0x10159ab5
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 0x68]
jne 0x10159ab5
mov al, byte [esp + 0x16]
cmp byte [ebp + 0x15], al
jne 0x10159ab5
movzx eax, word [ebp + 0x12]
cmp ax, si
jg 0x10159aaf
cmp word [ebp + 0x10], dx
jle 0x10159abf
cmp ax, si
jl 0x10159ab5
cmp word [ebp + 0x10], dx
jge 0x10159abf
inc ecx
add ebp, 0x20
cmp ecx, edi
jl 0x10159a80
jmp 0x10159ac3
cmp ecx, edi
jl 0x10159af3
mov ebx, dword [esp + 0x38]
cmp edi, ebx
jl 0x10159ae3
cmp si, word [esp + 0x40]
jge 0x10159bc7
mov ebp, dword [esp + 0x3c]
shl ebp, 5
add ebp, dword [esp + 0x28]
jmp 0x10159b07
mov ebp, edi
inc edi
shl ebp, 5
add ebp, dword [esp + 0x28]
mov dword [esp + 0x30], edi
jmp 0x10159b07
cmp word [ebp + 0x12], si
jg 0x10159b03
cmp word [ebp + 0x10], dx
jle 0x10159bc7
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx - 0x14]
mov eax, dword [esp + 0x1c]
or edx, dword [eax + 8]
add ecx, 0xffffffec
mov ecx, dword [ecx + 4]
or ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x60]
mov word [ebp + 0x12], si
mov esi, dword [esp + 0x2c]
mov dword [ebp], edx
mov edx, dword [esp + 0x5c]
mov dword [ebp + 4], ecx
mov cx, word [esp + 0x48]
mov dword [ebp + 0xc], eax
mov al, byte [esp + 0x17]
mov dword [ebp + 8], edx
mov dl, byte [esp + 0x16]
mov word [ebp + 0x10], cx
mov ecx, dword [esp + 0x20]
add esi, esi
mov byte [ebp + 0x14], al
mov eax, dword [ebp + 0x18]
mov byte [ebp + 0x15], dl
mov edx, dword [ecx + 4]
add esi, esi
push esi
push edx
push eax
call fcn.10184640
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x28]
add esp, 0xc
cmp edi, ebx
mov dword [esi + ecx], edx
jl 0x10159bc7
mov ecx, dword [esp + 0x28]
movzx edi, word [ecx + 0x12]
movzx esi, word [ecx + 0x10]
mov eax, 1
cmp ebx, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edi
jle 0x10159bc7
add ecx, 0x32
lea esp, [esp]
movzx edx, word [ecx]
cmp dx, di
jg 0x10159bb0
jne 0x10159bbb
cmp word [ecx - 2], si
jle 0x10159bbb
movzx esi, word [ecx - 2]
movzx edi, dx
mov dword [esp + 0x3c], eax
inc eax
add ecx, 0x20
cmp eax, ebx
jl 0x10159ba0
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x101597f3
add dword [esp + 0x20], 0x20
sub dword [esp + 0x4c], 1
jne 0x101597e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jl 0x101597c0
test esi, esi
jne 0x10159cd5
mov edi, dword [esp + 0x58]
push str.no_query_solution
call fcn.100fe0b0
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x10159cbf
cmp dword [esi + 0x200], 0
je 0x10159c8e
cmp eax, dword [esi + 0x10c]
jb 0x10159c6f
cmp eax, dword [esi + 0x110]
jae 0x10159c6f
movzx eax, word [esi + 0xf0]
mov esi, dword [esi + 0x200]
add dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push eax
call dword [0x10208e34]
mov esi, dword [esi + 0x200]
add esp, 4
add dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp eax, dword [esi + 0x10c]
jb 0x10159cbf
cmp eax, dword [esi + 0x110]
jae 0x10159cbf
mov edx, dword [esi + 0x108]
mov dword [eax], edx
dec dword [esi + 0xf4]
mov dword [esi + 0x108], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push eax
call fcn.100fc010
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp esi, 1
mov ebx, dword [esp + 0x34]
jle 0x10159cf6
lea eax, [ebx + 0x20]
dec esi
mov cx, word [ebx + 0x12]
cmp cx, word [eax + 0x12]
jle 0x10159cee
mov ebx, eax
add eax, 0x20
sub esi, 1
jne 0x10159ce2
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x78]
xor ecx, ecx
test ebp, ebp
jle 0x10159d36
lea eax, [edi + 0x2f8]
lea ebx, [ebx]
mov edx, dword [ebx + 0x18]
mov esi, dword [edx + ecx*4]
mov dword [eax + 0x14], esi
mov dl, byte [esi + 0x10]
mov byte [eax], dl
mov esi, dword [edi + 4]
movzx edx, dl
lea edx, [edx + edx*8]
mov edx, dword [esi + edx*8 + 0x34]
mov dword [eax - 0x1c], edx
inc ecx
add eax, 0x40
cmp ecx, ebp
jl 0x10159d10
movzx eax, word [edi + 0x22]
test eax, 0x400
je 0x10159d81
test eax, 0x200
jne 0x10159d81
cmp byte [edi + 0x27], 0
jne 0x10159d81
cmp word [esp + 0x7c], 0
je 0x10159d81
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx + ebp*4 - 4]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edi + 0xc]
push edx
dec ebp
push ebp
push 0x200
push ebx
push eax
push edi
call fcn.10159100
add esp, 0x1c
cmp eax, 1
jne 0x10159d81
mov byte [edi + 0x27], 2
cmp byte [ebx + 0x14], 0
je 0x10159da8
mov ecx, 0x200
test word [edi + 0x22], cx
je 0x10159d98
mov byte [edi + 0x27], 2
jmp 0x10159da8
mov byte [edi + 0x24], 1
mov edx, dword [ebx + 8]
mov dword [edi + 0x18], edx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x1c], eax
mov esi, dword [esp + 0x54]
mov cx, word [ebx + 0x10]
mov eax, dword [esp + 0x24]
mov word [edi + 0x20], cx
test esi, esi
je 0x10159e3c
cmp dword [esi + 0x200], 0
je 0x10159e0e
cmp eax, dword [esi + 0x10c]
jb 0x10159df2
cmp eax, dword [esi + 0x110]
jae 0x10159df2
movzx eax, word [esi + 0xf0]
mov esi, dword [esi + 0x200]
add dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push eax
call dword [0x10208e34]
mov esi, dword [esi + 0x200]
add dword [esi], eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp eax, dword [esi + 0x10c]
jb 0x10159e3c
cmp eax, dword [esi + 0x110]
jae 0x10159e3c
mov edx, dword [esi + 0x108]
mov dword [eax], edx
dec dword [esi + 0xf4]
mov dword [esi + 0x108], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push eax
call fcn.100fc010
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret