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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, ecx
xor ecx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx]
mov bp, dx
mov dword [esp + 0x68], eax
push 0xa
pop esi
mov edi, dword [eax]
mov al, byte [ebx + 0x2e]
movzx edx, al
mov byte [esp + 0x10], al
cmp edx, 2
push 5
pop eax
cmove esi, eax
mov word [esp + 0x12], bp
xor eax, eax
mov dword [esp + 0x4c], ecx
inc eax
mov dword [esp + 0x34], ecx
cmp edx, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x30], ecx
cmovbe esi, eax
mov dword [esp + 0x40], ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x74], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x60], esi
test eax, eax
je 0x45a79d
test bp, bp
je 0x45a79d
mov ecx, dword [eax]
mov eax, edx
mov dword [esp + 0x28], ecx
shl eax, 2
mov dword [esp + 0x54], eax
add eax, 0x20
imul eax, esi
add eax, ecx
mov ecx, edi
add eax, eax
cdq
push edx
push eax
call fcn.0040b343
mov dword [esp + 0x74], eax
pop ecx
pop ecx
test eax, eax
jne 0x45a7d0
push 7
pop eax
jmp 0x45ae25
mov edx, esi
mov dword [esp + 0x20], eax
shl edx, 5
push 8
pop ecx
lea ebp, [edx + eax]
xor eax, eax
mov edi, ebp
mov dword [esp + 0x64], ebp
rep stosd dword es:[edi], eax
lea ecx, [edx + ebp]
mov edx, dword [esp + 0x6c]
lea eax, [esi + esi]
add edx, 0x18
mov esi, dword [esp + 0x54]
mov dword [edx], ecx
dec eax
add ecx, esi
lea edx, [edx + 0x20]
test eax, eax
jg 0x45a7fa
mov edx, dword [esp + 0x28]
test edx, edx
je 0x45a825
lea eax, [edx + edx]
mov dword [esp + 0x40], ecx
push eax
push 0
push ecx
call fcn.00478810
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x68]
push 0x30
pop eax
cmp dword [ecx + 0x7c], eax
cmovb eax, dword [ecx + 0x7c]
mov cl, byte [esp + 0x10]
mov word [ebp + 0x10], ax
xor eax, eax
inc eax
mov dword [esp + 0x50], eax
test edx, edx
je 0x45a857
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 + 0x24]
xor esi, esi
mov dword [esp + 0x3c], esi
test cl, cl
je 0x45ac39
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x45abff
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 0x45abd7
mov al, byte [edx + 6]
xorps xmm0, xmm0
mov byte [esp + 0x11], al
lea eax, [edx - 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x58], 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 + 0x78], xmm0
jne 0x45abc4
mov eax, dword [edi + 8]
mov ecx, eax
mov esi, dword [edi + 0xc]
and ecx, dword [edx - 0x10]
mov dword [esp + 0x2c], eax
mov eax, esi
and eax, dword [edx - 0xc]
or ecx, eax
mov dword [esp + 0x44], esi
jne 0x45abc4
mov eax, 0x4000
test dword [edi + 0x24], eax
je 0x45a8f4
cmp word [edx], 3
jl 0x45abc4
movzx esi, word [edx]
movzx edx, word [edi + 0x14]
mov cx, word [edi + 0x12]
add dx, si
call fcn.0040e75f
mov ecx, dword [esp + 0x14]
mov dx, word [ecx + 4]
mov ecx, eax
call fcn.0040e75f
mov ecx, dword [esp + 0x58]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov ax, word [edi + 0x16]
add ax, si
movzx eax, ax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
or eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
or eax, dword [ecx + 4]
cmp byte [esp + 0x11], 0
mov dword [esp + 0x44], eax
jge 0x45aa0b
mov edx, dword [ebx + 8]
lea eax, [esp + 0x78]
push eax
movzx eax, word [ebx + 0x2c]
push edi
push dword [esp + 0x44]
push eax
push ecx
mov ecx, ebx
call fcn.00459f0b
add esp, 0x14
mov byte [esp + 0x11], al
test al, al
jns 0x45aa21
mov esi, dword [esp + 0x1c]
movzx edx, si
sub esi, 2
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x48], edx
mov edi, eax
test ebp, ebp
jle 0x45aab1
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov dl, byte [esp + 0x11]
cmp dword [edi], eax
jne 0x45a9ba
cmp dword [edi + 4], esi
jne 0x45a9ba
mov al, byte [edi + 0x16]
xor al, dl
jge 0x45a9c2
mov eax, dword [esp + 0x2c]
inc ecx
add edi, 0x20
cmp ecx, ebp
jl 0x45a9a6
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
cmp ecx, ebp
jge 0x45aaad
movzx eax, word [edi + 0x12]
cmp ax, dx
jl 0x45abbc
jne 0x45aaf3
movzx eax, word [edi + 0x10]
mov ecx, dword [esp + 0x5c]
cmp ax, cx
jl 0x45abbc
jne 0x45aaf3
cmp word [edi + 0x14], si
jle 0x45abbc
jmp 0x45aaf3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
mov ecx, dword [ecx - 4]
mov dword [esp + 0x78], eax
mov al, byte [esp + 0x11]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x28]
movzx esi, al
cmp esi, ecx
jge 0x45a978
mov eax, dword [esp + 0x40]
movzx eax, word [eax + esi*2]
mov edx, eax
test ax, ax
jne 0x45aa96
mov eax, ecx
movzx edi, word [esp + 0x12]
sub eax, esi
imul eax, eax, 0x64
cdq
idiv ecx
cdq
push edx
push eax
call fcn.0040e7bd
mov dx, word [esp + 0x1a]
add ax, dx
mov dword [esp + 0x50], eax
mov eax, 0x4000
pop ecx
pop ecx
test word [ebx + 0x2c], ax
je 0x45aa7a
movzx ecx, word [ebx + 0x14]
cmp cx, dx
jge 0x45aa7a
mov edi, ecx
mov ecx, edi
call fcn.004571a9
mov ecx, dword [esp + 0x48]
add ecx, 0xffffffce
add ax, cx
mov ecx, dword [esp + 0x40]
movzx edx, ax
mov word [ecx + esi*2], ax
mov ecx, dword [esp + 0x1c]
call fcn.0040e75f
push 5
pop ecx
add ax, cx
movzx edx, ax
jmp 0x45a986
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x60]
cmp ebp, esi
jl 0x45aad7
mov ecx, dword [esp + 0x34]
cmp dx, cx
jg 0x45abbc
jne 0x45aad7
mov ecx, dword [esp + 0x30]
cmp word [esp + 0x1c], cx
jge 0x45abbc
cmp ebp, esi
mov edi, ebp
cmovge edi, dword [esp + 0x4c]
shl edi, 5
add edi, eax
cmp ebp, esi
lea eax, [ebp + 1]
cmovge eax, ebp
mov ebp, eax
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
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 dword [edi], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x5c]
mov word [edi + 0x10], ax
mov eax, dword [esp + 0x48]
mov word [edi + 0x12], ax
mov eax, dword [esp + 0x1c]
mov word [edi + 0x14], ax
mov al, byte [esp + 0x11]
mov byte [edi + 0x16], al
mov eax, dword [esp + 0x14]
push esi
mov dword [edi + 0xc], ecx
push dword [eax + 8]
push dword [edi + 0x18]
call fcn.004793b0
mov eax, dword [edi + 0x18]
add esp, 0xc
mov edi, dword [esp + 0x18]
mov dword [esi + eax], edi
mov esi, dword [esp + 0x60]
cmp ebp, esi
jl 0x45abc0
mov eax, dword [esp + 0x20]
and dword [esp + 0x4c], 0
movzx ecx, word [eax + 0x12]
mov dword [esp + 0x34], ecx
movzx ecx, word [eax + 0x10]
mov dword [esp + 0x30], ecx
xor ecx, ecx
inc ecx
cmp esi, ecx
jbe 0x45abc0
mov ebp, dword [esp + 0x34]
add eax, 0x34
mov edi, dword [esp + 0x30]
movzx edx, word [eax - 2]
cmp dx, bp
jg 0x45ab9f
jne 0x45aba8
cmp word [eax], di
jle 0x45aba8
movzx edi, word [eax]
mov ebp, edx
mov dword [esp + 0x4c], ecx
inc ecx
add eax, 0x20
cmp ecx, esi
jl 0x45ab8f
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x30], 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 0x45a893
mov eax, dword [esp + 0x50]
add edx, 0x20
sub eax, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], eax
jne 0x45a884
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
mov eax, edx
inc esi
mov dword [esp + 0x3c], esi
mov edx, ebp
mov dword [esp + 0x20], edx
mov ebp, eax
mov dword [esp + 0x64], ebp
mov eax, ecx
mov dword [esp + 0x50], eax
cmp esi, edi
jl 0x45a86d
test ecx, ecx
jne 0x45ac39
push str.no_query_solution
push dword [esp + 0x6c]
call fcn.0040d6b3
pop ecx
pop ecx
jmp 0x45ae14
cmp eax, 1
jle 0x45ac57
lea ecx, [ebp + 0x20]
lea edx, [eax - 1]
mov ax, word [ebp + 0x12]
cmp ax, word [ecx + 0x12]
cmovg ebp, ecx
add ecx, 0x20
sub edx, 1
jne 0x45ac44
xor esi, esi
cmp byte [esp + 0x10], 0
jbe 0x45ac8c
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 0x45ac66
mov ax, word [ebx + 0x2c]
mov ecx, 0x180
and ax, cx
add ecx, 0xffffff80
cmp ax, cx
jne 0x45acdf
cmp byte [ebx + 0x33], 0
jne 0x45acdf
cmp word [esp + 0x12], 0
je 0x45acdf
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0x78]
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.00459f0b
movsx ecx, al
add esp, 0x14
mov eax, dword [ebx + 0xc]
cmp ecx, dword [eax]
jne 0x45acdf
mov byte [ebx + 0x33], 2
mov edi, dword [ebx + 8]
mov byte [ebx + 0x34], 0
test edi, edi
je 0x45ae07
test byte [ebx + 0x2c], 0x80
mov dl, byte [ebp + 0x16]
je 0x45ad09
movsx eax, dl
cmp eax, dword [edi]
jne 0x45ad02
mov byte [ebx + 0x33], 2
mov esi, edi
jmp 0x45ada2
mov byte [ebx + 0x2f], dl
mov esi, edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x44], ecx
mov cl, byte [esp + 0x10]
mov dword [ebx + 0x40], eax
test dl, dl
jg 0x45ada6
mov byte [ebx + 0x2f], 0
test cl, cl
je 0x45ada6
mov ecx, dword [esp + 0x54]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + ecx - 4]
mov ecx, 0x104
mov dword [esp + 0x70], 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 0x45ada2
lea eax, [esp + 0x78]
xorps xmm0, xmm0
push eax
push dword [esp + 0x74]
mov eax, dword [esp + 0x2c]
mov edx, edi
dec eax
movlpd qword [esp + 0x80], xmm0
push eax
push 0x800
push ebp
mov ecx, ebx
call fcn.00459f0b
mov esi, dword [ebx + 8]
add esp, 0x14
movsx eax, al
cmp eax, dword [esi]
jne 0x45ada2
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov byte [ebx + 0x34], 1
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov cl, byte [esp + 0x10]
mov eax, 0x200
test word [ebx + 0x2c], ax
je 0x45ae07
movsx eax, byte [ebx + 0x2f]
cmp eax, dword [esi]
jne 0x45ae07
test cl, cl
je 0x45ae07
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x7c], xmm0
mov edx, esi
push dword [eax + ecx - 4]
mov eax, dword [esp + 0x2c]
mov ecx, ebx
dec eax
push eax
push 0
push ebp
call fcn.00459f0b
movsx ecx, al
add esp, 0x14
mov eax, dword [ebx + 8]
cmp ecx, dword [eax]
jne 0x45ae07
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov byte [ebx + 0x30], 1
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edx
mov ax, word [ebp + 0x10]
and dword [esp + 0x70], 0
mov word [ebx + 0x48], ax
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
call fcn.0040b163
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret