Function at 0x454225
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 0x45428c
test bp, bp
je 0x45428c
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.00404e37
mov dword [esp + 0x74], eax
pop ecx
pop ecx
test eax, eax
jne 0x4542bf
push 7
pop eax
jmp 0x454914
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 0x4542e9
mov edx, dword [esp + 0x28]
test edx, edx
je 0x454314
lea eax, [edx + edx]
mov dword [esp + 0x40], ecx
push eax
push 0
push ecx
call fcn.00461a70
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 0x454346
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 0x454728
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x4546ee
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 0x4546c6
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 0x4546b3
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 0x4546b3
mov eax, 0x4000
test dword [edi + 0x24], eax
je 0x4543e3
cmp word [edx], 3
jl 0x4546b3
movzx esi, word [edx]
movzx edx, word [edi + 0x14]
mov cx, word [edi + 0x12]
add dx, si
call fcn.00408253
mov ecx, dword [esp + 0x14]
mov dx, word [ecx + 4]
mov ecx, eax
call fcn.00408253
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 0x4544fa
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.004539fa
add esp, 0x14
mov byte [esp + 0x11], al
test al, al
jns 0x454510
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 0x4545a0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov dl, byte [esp + 0x11]
cmp dword [edi], eax
jne 0x4544a9
cmp dword [edi + 4], esi
jne 0x4544a9
mov al, byte [edi + 0x16]
xor al, dl
jge 0x4544b1
mov eax, dword [esp + 0x2c]
inc ecx
add edi, 0x20
cmp ecx, ebp
jl 0x454495
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
cmp ecx, ebp
jge 0x45459c
movzx eax, word [edi + 0x12]
cmp ax, dx
jl 0x4546ab
jne 0x4545e2
movzx eax, word [edi + 0x10]
mov ecx, dword [esp + 0x5c]
cmp ax, cx
jl 0x4546ab
jne 0x4545e2
cmp word [edi + 0x14], si
jle 0x4546ab
jmp 0x4545e2
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 0x454467
mov eax, dword [esp + 0x40]
movzx eax, word [eax + esi*2]
mov edx, eax
test ax, ax
jne 0x454585
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.004082b1
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 0x454569
movzx ecx, word [ebx + 0x14]
cmp cx, dx
jge 0x454569
mov edi, ecx
mov ecx, edi
call fcn.00450c98
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.00408253
push 5
pop ecx
add ax, cx
movzx edx, ax
jmp 0x454475
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x60]
cmp ebp, esi
jl 0x4545c6
mov ecx, dword [esp + 0x34]
cmp dx, cx
jg 0x4546ab
jne 0x4545c6
mov ecx, dword [esp + 0x30]
cmp word [esp + 0x1c], cx
jge 0x4546ab
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.00462610
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 0x4546af
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 0x4546af
mov ebp, dword [esp + 0x34]
add eax, 0x34
mov edi, dword [esp + 0x30]
movzx edx, word [eax - 2]
cmp dx, bp
jg 0x45468e
jne 0x454697
cmp word [eax], di
jle 0x454697
movzx edi, word [eax]
mov ebp, edx
mov dword [esp + 0x4c], ecx
inc ecx
add eax, 0x20
cmp ecx, esi
jl 0x45467e
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 0x454382
mov eax, dword [esp + 0x50]
add edx, 0x20
sub eax, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], eax
jne 0x454373
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 0x45435c
test ecx, ecx
jne 0x454728
push str.no_query_solution
push dword [esp + 0x6c]
call fcn.004071a7
pop ecx
pop ecx
jmp 0x454903
cmp eax, 1
jle 0x454746
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 0x454733
xor esi, esi
cmp byte [esp + 0x10], 0
jbe 0x45477b
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 0x454755
mov ax, word [ebx + 0x2c]
mov ecx, 0x180
and ax, cx
add ecx, 0xffffff80
cmp ax, cx
jne 0x4547ce
cmp byte [ebx + 0x33], 0
jne 0x4547ce
cmp word [esp + 0x12], 0
je 0x4547ce
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.004539fa
movsx ecx, al
add esp, 0x14
mov eax, dword [ebx + 0xc]
cmp ecx, dword [eax]
jne 0x4547ce
mov byte [ebx + 0x33], 2
mov edi, dword [ebx + 8]
mov byte [ebx + 0x34], 0
test edi, edi
je 0x4548f6
test byte [ebx + 0x2c], 0x80
mov dl, byte [ebp + 0x16]
je 0x4547f8
movsx eax, dl
cmp eax, dword [edi]
jne 0x4547f1
mov byte [ebx + 0x33], 2
mov esi, edi
jmp 0x454891
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 0x454895
mov byte [ebx + 0x2f], 0
test cl, cl
je 0x454895
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 0x454891
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.004539fa
mov esi, dword [ebx + 8]
add esp, 0x14
movsx eax, al
cmp eax, dword [esi]
jne 0x454891
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 0x4548f6
movsx eax, byte [ebx + 0x2f]
cmp eax, dword [esi]
jne 0x4548f6
test cl, cl
je 0x4548f6
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.004539fa
movsx ecx, al
add esp, 0x14
mov eax, dword [ebx + 8]
cmp ecx, dword [eax]
jne 0x4548f6
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.00404c57
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret