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

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, ecx
xor ecx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx]
mov bp, dx
mov dword [esp + 0x70], eax
push 0xa
pop esi
mov edi, dword [eax]
mov al, byte [ebx + 0x2e]
movzx edx, al
mov byte [esp + 0x12], al
cmp edx, 2
push 5
pop eax
cmove esi, eax
mov word [esp + 0x1e], bp
xor eax, eax
mov dword [esp + 0x5c], ecx
inc eax
mov dword [esp + 0x3c], ecx
cmp edx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ecx
cmovbe esi, eax
mov dword [esp + 0x54], ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x94], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x88], esi
test eax, eax
je 0x461409
test bp, bp
je 0x461409
mov ecx, dword [eax]
mov eax, edx
mov dword [esp + 0x30], ecx
shl eax, 2
mov dword [esp + 0x64], eax
add eax, 0x20
imul eax, esi
add eax, ecx
mov ecx, edi
add eax, eax
cdq
push edx
push eax
call fcn.00412c70
mov dword [esp + 0x98], eax
pop ecx
pop ecx
test eax, eax
jne 0x46143f
push 7
pop eax
jmp 0x461aae
mov edx, esi
mov dword [esp + 0x24], eax
shl edx, 5
push 8
pop ecx
lea ebp, [edx + eax]
xor eax, eax
mov edi, ebp
mov dword [esp + 0x8c], ebp
rep stosd dword es:[edi], eax
lea ecx, [edx + ebp]
mov edx, dword [esp + 0x90]
lea eax, [esi + esi]
add edx, 0x18
mov esi, dword [esp + 0x64]
mov dword [edx], ecx
dec eax
add ecx, esi
lea edx, [edx + 0x20]
test eax, eax
jg 0x46146f
mov edx, dword [esp + 0x30]
test edx, edx
je 0x46149a
lea eax, [edx + edx]
mov dword [esp + 0x54], ecx
push eax
push 0
push ecx
call fcn.0049ee30
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x70]
push 0x30
pop eax
cmp dword [ecx + 0x7c], eax
cmovb eax, dword [ecx + 0x7c]
mov cl, byte [esp + 0x12]
mov word [ebp + 0x10], ax
xor eax, eax
inc eax
mov dword [esp + 0x60], eax
test edx, edx
je 0x4614cc
movzx eax, dl
or edx, 0xffffffff
test cl, cl
cmovne eax, edx
mov byte [ebp + 0x16], al
xor eax, eax
inc eax
mov edi, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x44], esi
test cl, cl
je 0x4618bf
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x40], ecx
test eax, eax
jle 0x461882
lea edx, [ebp + 0x10]
mov ebp, ecx
mov dword [esp + 0x14], edx
mov edi, dword [ebx + 0x3c]
mov dword [esp + 0x18], edi
test edi, edi
je 0x461857
mov al, byte [edx + 6]
xorps xmm0, xmm0
mov byte [esp + 0x13], al
lea eax, [edx - 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x7c], eax
not ecx
mov eax, dword [eax + 4]
and ecx, dword [edi]
not eax
and eax, dword [edi + 4]
or ecx, eax
movlpd qword [esp + 0x68], xmm0
jne 0x461844
mov eax, dword [edi + 8]
mov ecx, eax
mov esi, dword [edi + 0xc]
and ecx, dword [edx - 0x10]
mov dword [esp + 0x34], eax
mov eax, esi
and eax, dword [edx - 0xc]
or ecx, eax
mov dword [esp + 0x58], esi
jne 0x461844
mov eax, 0x4000
test dword [edi + 0x24], eax
je 0x461569
cmp word [edx], 3
jl 0x461844
movzx esi, word [edx]
movzx edx, word [edi + 0x14]
mov cx, word [edi + 0x12]
add dx, si
call fcn.00415fc2
mov ecx, dword [esp + 0x14]
mov dx, word [ecx + 4]
mov ecx, eax
call fcn.00415fc2
mov ecx, dword [esp + 0x7c]
movzx eax, ax
mov dword [esp + 0x20], eax
mov ax, word [edi + 0x16]
add ax, si
movzx eax, ax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
or eax, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
or eax, dword [ecx + 4]
cmp byte [esp + 0x13], 0
mov dword [esp + 0x58], eax
jge 0x4615f8
mov edx, dword [ebx + 8]
lea eax, [esp + 0x68]
push eax
movzx eax, word [ebx + 0x2c]
push edi
push dword [esp + 0x4c]
push eax
push ecx
mov ecx, ebx
call fcn.00460b7a
mov ecx, dword [esp + 0x80]
add esp, 0x14
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x13], al
jmp 0x46160d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
mov eax, dword [eax - 4]
mov dword [esp + 0x80], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x68], ecx
test al, al
js 0x46169e
mov ecx, dword [esp + 0x30]
movsx esi, al
cmp esi, ecx
jge 0x46169e
mov eax, dword [esp + 0x54]
movzx eax, word [eax + esi*2]
mov edx, eax
test ax, ax
jne 0x46168a
mov eax, ecx
movzx edi, word [esp + 0x1e]
sub eax, esi
imul eax, eax, 0x64
cdq
idiv ecx
cdq
push edx
push eax
call fcn.00416020
mov dx, word [esp + 0x26]
add ax, dx
mov dword [esp + 0x34], eax
mov eax, 0x4000
pop ecx
pop ecx
test word [ebx + 0x2c], ax
je 0x46166e
movzx ecx, word [ebx + 0x14]
cmp cx, dx
jge 0x46166e
mov edi, ecx
mov ecx, edi
call fcn.0045df0f
mov ecx, dword [esp + 0x2c]
add ecx, 0xffffffce
add ax, cx
mov ecx, dword [esp + 0x54]
movzx edx, ax
mov word [ecx + esi*2], ax
mov ecx, dword [esp + 0x20]
call fcn.00415fc2
push 5
pop ecx
add ax, cx
movzx edx, ax
jmp 0x4616ac
mov esi, dword [esp + 0x20]
movzx edx, si
sub esi, 2
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edi, eax
test ebp, ebp
jle 0x461725
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
mov dl, byte [esp + 0x13]
cmp dword [edi], eax
jne 0x4616dc
cmp dword [edi + 4], esi
jne 0x4616dc
mov al, byte [edi + 0x16]
xor al, dl
jge 0x4616e4
mov eax, dword [esp + 0x34]
inc ecx
add edi, 0x20
cmp ecx, ebp
jl 0x4616c8
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cmp ecx, ebp
jge 0x461721
movzx eax, word [edi + 0x12]
cmp ax, dx
jl 0x46183c
jne 0x46176a
movzx eax, word [edi + 0x10]
mov ecx, dword [esp + 0x84]
cmp ax, cx
jl 0x46183c
jne 0x46176a
cmp word [edi + 0x14], si
jle 0x46183c
jmp 0x46176a
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x88]
cmp ebp, esi
jl 0x46174e
mov ecx, dword [esp + 0x3c]
cmp dx, cx
jg 0x46183c
jne 0x46174e
mov ecx, dword [esp + 0x38]
cmp word [esp + 0x20], cx
jge 0x46183c
cmp ebp, esi
mov edi, ebp
cmovge edi, dword [esp + 0x5c]
shl edi, 5
add edi, eax
cmp ebp, esi
lea eax, [ebp + 1]
cmovge eax, ebp
mov ebp, eax
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
shl esi, 2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
or eax, dword [edx + 0xc]
or ecx, dword [edx + 8]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x68]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x80]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x84]
mov word [edi + 0x10], ax
mov eax, dword [esp + 0x2c]
mov word [edi + 0x12], ax
mov eax, dword [esp + 0x20]
mov word [edi + 0x14], ax
mov al, byte [esp + 0x13]
mov byte [edi + 0x16], al
mov eax, dword [esp + 0x14]
push esi
mov dword [edi], ecx
push dword [eax + 8]
push dword [edi + 0x18]
call fcn.0049fa90
mov eax, dword [edi + 0x18]
add esp, 0xc
mov edi, dword [esp + 0x18]
mov dword [esi + eax], edi
mov esi, dword [esp + 0x88]
cmp ebp, esi
jl 0x461840
mov eax, dword [esp + 0x24]
and dword [esp + 0x5c], 0
movzx ecx, word [eax + 0x12]
mov dword [esp + 0x3c], ecx
movzx ecx, word [eax + 0x10]
mov dword [esp + 0x38], ecx
xor ecx, ecx
inc ecx
cmp esi, ecx
jbe 0x461840
mov ebp, dword [esp + 0x3c]
add eax, 0x34
mov edi, dword [esp + 0x38]
movzx edx, word [eax - 2]
cmp dx, bp
jg 0x46181f
jne 0x461828
cmp word [eax], di
jle 0x461828
movzx edi, word [eax]
mov ebp, edx
mov dword [esp + 0x5c], ecx
inc ecx
add eax, 0x20
cmp ecx, esi
jl 0x46180f
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x461508
mov eax, dword [esp + 0x60]
add edx, 0x20
sub eax, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], eax
jne 0x4614f9
mov ebp, dword [esp + 0x8c]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x44]
mov eax, edx
inc esi
mov dword [esp + 0x44], esi
mov edx, ebp
mov dword [esp + 0x24], edx
mov ebp, eax
mov dword [esp + 0x8c], ebp
mov eax, ecx
mov dword [esp + 0x60], eax
cmp esi, edi
jl 0x4614e2
test ecx, ecx
jne 0x4618bf
push str.no_query_solution
push dword [esp + 0x74]
call fcn.00414f88
pop ecx
pop ecx
jmp 0x461a97
cmp eax, 1
jle 0x4618e1
lea edx, [ebp + 0x20]
lea esi, [eax - 1]
mov ax, word [ebp + 0x12]
mov ecx, edx
cmp ax, word [edx + 0x12]
cmovle ecx, ebp
add edx, 0x20
mov ebp, ecx
sub esi, 1
jne 0x4618ca
xor esi, esi
cmp byte [esp + 0x12], 0
jbe 0x461916
lea edx, [ebx + 0x31c]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + esi*4]
mov dword [edx + 0x14], eax
mov al, byte [eax + 0x10]
mov byte [edx], al
lea edx, [edx + 0x50]
movzx eax, al
imul ecx, eax, 0x48
inc esi
mov eax, dword [ebx + 4]
mov eax, dword [ecx + eax + 0x34]
mov dword [edx - 0x78], eax
cmp esi, edi
jl 0x4618f0
mov ax, word [ebx + 0x2c]
mov ecx, 0x180
and ax, cx
add ecx, 0xffffff80
cmp ax, cx
jne 0x461969
cmp byte [ebx + 0x33], 0
jne 0x461969
cmp word [esp + 0x1e], 0
je 0x461969
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0x18]
mov ecx, ebx
push dword [eax + edi*4 - 4]
lea eax, [edi - 1]
push eax
push 0x80
push ebp
call fcn.00460b7a
movsx ecx, al
add esp, 0x14
mov eax, dword [ebx + 0xc]
cmp ecx, dword [eax]
jne 0x461969
mov byte [ebx + 0x33], 2
mov edi, dword [ebx + 8]
mov byte [ebx + 0x34], 0
test edi, edi
je 0x461a8a
test byte [ebx + 0x2c], 0x80
mov cl, byte [ebp + 0x16]
je 0x461993
movsx eax, cl
cmp eax, dword [edi]
jne 0x46198c
mov byte [ebx + 0x33], 2
mov esi, edi
jmp 0x461a25
mov byte [ebx + 0x2f], cl
test cl, cl
mov eax, dword [ebp + 8]
mov esi, edi
mov cl, byte [esp + 0x12]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x44], eax
jg 0x461a29
mov byte [ebx + 0x2f], 0
test cl, cl
je 0x461a29
mov ecx, dword [esp + 0x64]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + ecx - 4]
mov ecx, 0x104
mov dword [esp + 0x48], 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 0x461a25
lea eax, [esp + 0x70]
xorps xmm0, xmm0
push eax
push dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
mov edx, edi
dec eax
movlpd qword [esp + 0x78], xmm0
push eax
push 0x800
push ebp
mov ecx, ebx
call fcn.00460b7a
mov esi, dword [ebx + 8]
add esp, 0x14
movsx eax, al
cmp eax, dword [esi]
jne 0x461a25
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x74]
mov byte [ebx + 0x34], 1
mov dword [ebx + 0x44], eax
mov cl, byte [esp + 0x12]
mov eax, 0x200
test word [ebx + 0x2c], ax
je 0x461a8a
movsx eax, byte [ebx + 0x2f]
cmp eax, dword [esi]
jne 0x461a8a
test cl, cl
je 0x461a8a
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
mov edx, esi
movlpd qword [esp + 0x4c], xmm0
push dword [eax + ecx - 4]
mov eax, dword [esp + 0x30]
mov ecx, ebx
dec eax
push eax
push 0
push ebp
call fcn.00460b7a
movsx ecx, al
add esp, 0x14
mov eax, dword [ebx + 8]
cmp ecx, dword [eax]
jne 0x461a8a
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x4c]
mov byte [ebx + 0x30], 1
mov dword [ebx + 0x44], eax
mov ax, word [ebp + 0x10]
and dword [esp + 0x48], 0
mov word [ebx + 0x48], ax
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
call fcn.00412a50
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret