Function at 0x10100320
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 0x10100353
mov edi, ebx
jmp 0x10100362
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.100a0d40
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x1010038c
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 0x101003d4
lea edi, [ebx*4]
add esi, 0x18
mov dword [esi], ecx
dec eax
add esi, 0x20
add ecx, edi
test eax, eax
jg 0x101003c8
mov eax, dword [ebp + 0x1c8]
cmp eax, 0x2e
jb 0x101003e4
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 0x10100438
mov edi, dword [esp + 0x7c]
cmp di, bp
je 0x10100438
movsx eax, di
cdq
push edx
push eax
call fcn.100a3c30
movzx eax, ax
add esp, 8
cmp ax, 0x21
jle 0x1010042b
cwde
sub eax, 0x21
add eax, edi
movzx ecx, ax
mov dword [esp + 0x44], ecx
jmp 0x1010043c
xor eax, eax
mov eax, edi
movzx ecx, ax
mov dword [esp + 0x44], ecx
jmp 0x1010043c
mov byte [edx + 0x15], 1
cmp ebx, ebp
mov dword [esp + 0x2c], ebp
jle 0x10100965
jmp 0x10100450
mov dword [esp + 0x30], 0
test esi, esi
jle 0x1010087a
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 0x1010086a
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 0x10100857
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 0x10100857
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 0x10100536
movsx edx, ax
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x1010050f
movzx eax, cx
mov dword [esp + 0x18], eax
jmp 0x1010056d
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x10100520
inc ecx
movzx ecx, cx
mov dword [esp + 0x18], ecx
jmp 0x1010056d
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 0x1010056d
movsx edx, cx
movsx ecx, ax
lea esi, [edx + 0x31]
cmp ecx, esi
jle 0x1010054c
movzx ecx, ax
mov dword [esp + 0x18], ecx
jmp 0x1010056d
lea esi, [edx + 0x1f]
cmp ecx, esi
jle 0x10100559
inc eax
movzx edx, ax
jmp 0x10100569
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 0x101005ad
movsx ecx, cx
movsx eax, si
lea edx, [ecx + 0x31]
cmp eax, edx
jg 0x101005e9
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x10100599
inc dword [esp + 0x18]
jmp 0x101005e4
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 0x101005e9
movsx edx, si
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x101005bf
movzx ecx, cx
jmp 0x101005e0
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x101005d0
inc ecx
movzx edx, cx
mov dword [esp + 0x18], edx
jmp 0x101005e4
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 0x101006f0
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.100ffd70
add esp, 0x1c
sub eax, 0
je 0x10100669
sub eax, 1
jne 0x101006fe
mov byte [esp + 0x17], 1
mov byte [esp + 0x16], 1
jmp 0x101006fe
mov edx, dword [esp + 0x44]
cmp si, dx
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 1
jl 0x101006aa
movsx ecx, dx
movsx eax, si
lea edx, [ecx + 0x31]
cmp eax, edx
jg 0x101006fe
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x1010069b
inc dword [esp + 0x18]
mov si, word [esp + 0x18]
jmp 0x101006fe
sub eax, ecx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add si, ax
jmp 0x101006fe
movsx ecx, si
movsx eax, dx
lea esi, [ecx + 0x31]
cmp eax, esi
jle 0x101006c3
movzx ecx, dx
mov dword [esp + 0x18], ecx
mov si, cx
jmp 0x101006fe
lea esi, [ecx + 0x1f]
cmp eax, esi
jle 0x101006d7
inc edx
movzx edx, dx
mov dword [esp + 0x18], edx
mov si, dx
jmp 0x101006fe
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 0x101006fe
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 0x10100753
mov edx, dword [esp + 0x48]
mov eax, dword [ebp]
cmp eax, dword [esp + 0x64]
jne 0x10100745
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 0x68]
jne 0x10100745
mov al, byte [esp + 0x16]
cmp byte [ebp + 0x15], al
jne 0x10100745
movzx eax, word [ebp + 0x12]
cmp ax, si
jg 0x1010073f
cmp word [ebp + 0x10], dx
jle 0x1010074f
cmp ax, si
jl 0x10100745
cmp word [ebp + 0x10], dx
jge 0x1010074f
inc ecx
add ebp, 0x20
cmp ecx, edi
jl 0x10100710
jmp 0x10100753
cmp ecx, edi
jl 0x10100783
mov ebx, dword [esp + 0x38]
cmp edi, ebx
jl 0x10100773
cmp si, word [esp + 0x40]
jge 0x10100857
mov ebp, dword [esp + 0x3c]
shl ebp, 5
add ebp, dword [esp + 0x28]
jmp 0x10100797
mov ebp, edi
inc edi
shl ebp, 5
add ebp, dword [esp + 0x28]
mov dword [esp + 0x30], edi
jmp 0x10100797
cmp word [ebp + 0x12], si
jg 0x10100793
cmp word [ebp + 0x10], dx
jle 0x10100857
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.101162d0
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x28]
add esp, 0xc
cmp edi, ebx
mov dword [esi + ecx], edx
jl 0x10100857
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 0x10100857
add ecx, 0x32
lea esp, [esp]
movzx edx, word [ecx]
cmp dx, di
jg 0x10100840
jne 0x1010084b
cmp word [ecx - 2], si
jle 0x1010084b
movzx esi, word [ecx - 2]
movzx edi, dx
mov dword [esp + 0x3c], eax
inc eax
add ecx, 0x20
cmp eax, ebx
jl 0x10100830
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10100483
add dword [esp + 0x20], 0x20
sub dword [esp + 0x4c], 1
jne 0x10100470
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 0x10100450
test esi, esi
jne 0x10100965
mov edi, dword [esp + 0x58]
push str.no_query_solution
call fcn.100a2b40
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x1010094f
cmp dword [esi + 0x200], 0
je 0x1010091e
cmp eax, dword [esi + 0x10c]
jb 0x101008ff
cmp eax, dword [esi + 0x110]
jae 0x101008ff
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 [0x10177780]
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 0x1010094f
cmp eax, dword [esi + 0x110]
jae 0x1010094f
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.100a0aa0
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 0x10100986
lea eax, [ebx + 0x20]
dec esi
mov cx, word [ebx + 0x12]
cmp cx, word [eax + 0x12]
jle 0x1010097e
mov ebx, eax
add eax, 0x20
sub esi, 1
jne 0x10100972
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x78]
xor ecx, ecx
test ebp, ebp
jle 0x101009c6
lea eax, [edi + 0x304]
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 - 0x20], edx
inc ecx
add eax, 0x48
cmp ecx, ebp
jl 0x101009a0
movzx eax, word [edi + 0x22]
test eax, 0x400
je 0x10100a11
test eax, 0x200
jne 0x10100a11
cmp byte [edi + 0x27], 0
jne 0x10100a11
cmp word [esp + 0x7c], 0
je 0x10100a11
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.100ffd70
add esp, 0x1c
cmp eax, 1
jne 0x10100a11
mov byte [edi + 0x27], 2
cmp byte [ebx + 0x14], 0
je 0x10100a38
mov ecx, 0x200
test word [edi + 0x22], cx
je 0x10100a28
mov byte [edi + 0x27], 2
jmp 0x10100a38
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 0x10100acc
cmp dword [esi + 0x200], 0
je 0x10100a9e
cmp eax, dword [esi + 0x10c]
jb 0x10100a82
cmp eax, dword [esi + 0x110]
jae 0x10100a82
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 [0x10177780]
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 0x10100acc
cmp eax, dword [esi + 0x110]
jae 0x10100acc
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.100a0aa0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret