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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
push ebx
push ebp
movzx ebp, byte [eax + 0x2c]
push esi
xor esi, esi
cmp ebp, 1
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], ebp
jg 0x453665
lea edi, [esi + 1]
jmp 0x453674
mov edi, ebp
sub edi, 2
neg edi
sbb edi, edi
and edi, 5
add edi, 5
mov eax, dword [eax + 8]
mov dword [esp + 0x28], edi
cmp eax, esi
je 0x45368a
cmp word [esp + 0x7c], si
je 0x45368a
mov ebx, dword [eax]
jmp 0x45368c
xor ebx, ebx
mov ecx, dword [ecx]
lea eax, [ebp + 8]
imul eax, edi
lea eax, [ebx + eax*4]
add eax, eax
cdq
push edx
push eax
mov dword [esp + 0x50], ebx
call fcn.00419be0
add esp, 8
mov dword [esp + 0x58], eax
cmp eax, esi
jne 0x4536bd
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x64
ret
xor ecx, ecx
mov edx, edi
shl edx, 5
lea esi, [edx + eax]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
lea ecx, [edi + edi]
add edx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], esi
test ecx, ecx
jle 0x45370c
lea edi, [ebp*4]
add eax, 0x18
lea esp, [esp]
mov dword [eax], edx
dec ecx
add eax, 0x20
add edx, edi
test ecx, ecx
jg 0x453700
test ebx, ebx
je 0x453723
lea ecx, [ebx + ebx]
push ecx
push 0
push edx
mov dword [esp + 0x58], edx
call fcn.004acf20
add esp, 0xc
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x8c]
cmp eax, 0x30
jb 0x453737
mov eax, 0x30
mov word [esi + 0x10], ax
mov eax, 1
test ebx, ebx
je 0x453752
test ebp, ebp
jle 0x45374d
or ecx, 0xffffffff
jmp 0x45374f
mov ecx, ebx
mov byte [esi + 0x16], cl
mov dword [esp + 0x20], 0
test ebp, ebp
jle 0x453aee
jmp 0x453770
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x453a9a
mov ecx, dword [esp + 0x30]
add ecx, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
nop
mov edx, dword [esp + 0x78]
mov ebp, dword [edx + 0x40]
test ebp, ebp
je 0x453a8a
nop
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0x10]
add ecx, 0xfffffff0
mov ecx, dword [ecx + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
not eax
and eax, dword [ebp]
not ecx
and ecx, dword [ebp + 4]
or eax, ecx
jne 0x453a7f
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, esi
and eax, dword [esp + 0x64]
mov ecx, edi
and ecx, dword [esp + 0x68]
or eax, ecx
jne 0x453a7f
test dword [ebp + 0x2c], 0x4000
je 0x4537f8
mov eax, dword [esp + 0x14]
cmp word [eax], 3
jl 0x453a7f
mov ecx, dword [esp + 0x14]
movzx ebx, word [ecx]
movzx eax, word [ebp + 0x14]
mov cx, word [ebp + 0x12]
add ax, bx
call fcn.0040b820
mov edx, dword [esp + 0x14]
movzx ecx, ax
mov ax, word [edx + 4]
call fcn.0040b820
movzx ecx, word [ebp + 0x16]
or esi, dword [esp + 0x64]
or edi, dword [esp + 0x68]
movzx eax, ax
add cx, bx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
movzx edx, cx
mov cl, byte [eax + 6]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x24], edx
mov dword [esp + 0x70], edi
mov byte [esp + 0x13], cl
test cl, cl
jge 0x45388e
mov edx, dword [esp + 0x20]
xor eax, eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
movzx eax, word [esi + 0x28]
push ebp
push edx
push eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
push eax
push ecx
push esi
call fcn.00452ed0
add esp, 0x1c
mov byte [esp + 0x13], al
mov cl, al
jmp 0x4538a0
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 8]
mov eax, dword [eax - 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
test cl, cl
jl 0x4538e5
mov eax, dword [esp + 0x48]
movsx edi, cl
cmp edi, eax
jge 0x4538e5
mov ebx, dword [esp + 0x4c]
cmp word [ebx + edi*2], 0
jne 0x4538cf
push eax
mov eax, dword [esp + 0x80]
push esi
call fcn.004172e0
add esp, 8
mov word [ebx + edi*2], ax
mov ax, word [ebx + edi*2]
mov ecx, dword [esp + 0x18]
call fcn.0040b820
add ax, 3
movzx ecx, ax
jmp 0x4538f3
mov eax, dword [esp + 0x18]
movzx ecx, ax
sub eax, 2
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x34], ecx
jne 0x453913
test dword [ebp + 0x2c], 0x2000000
je 0x453913
sub ecx, 0xa
sub dword [esp + 0x24], 0x1e
mov dword [esp + 0x34], ecx
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
xor edi, edi
test ebx, ebx
jle 0x45394b
mov edx, dword [esi]
cmp edx, dword [esp + 0x6c]
jne 0x45393d
mov eax, dword [esi + 4]
cmp eax, dword [esp + 0x70]
jne 0x45393d
mov dl, byte [esi + 0x16]
xor dl, byte [esp + 0x13]
test dl, dl
jns 0x453947
inc edi
add esi, 0x20
cmp edi, ebx
jl 0x453921
jmp 0x45394b
cmp edi, ebx
jl 0x45398d
cmp ebx, dword [esp + 0x28]
jl 0x45397d
mov eax, dword [esp + 0x40]
cmp cx, ax
jg 0x453a7f
jne 0x453970
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x3c]
jge 0x453a7f
mov esi, dword [esp + 0x38]
shl esi, 5
add esi, dword [esp + 0x1c]
jmp 0x4539be
mov esi, ebx
inc ebx
shl esi, 5
add esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
jmp 0x4539be
movzx eax, word [esi + 0x12]
cmp ax, cx
jl 0x453a7f
jne 0x4539be
movzx eax, word [esi + 0x10]
mov ecx, dword [esp + 0x24]
cmp ax, cx
jl 0x453a7f
jne 0x4539be
mov cx, word [esp + 0x18]
cmp word [esi + 0x14], cx
jle 0x453a7f
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
or edx, dword [eax - 0x10]
or ecx, dword [eax - 0xc]
mov edi, dword [esp + 0x20]
mov dword [esi], edx
mov edx, dword [esp + 0x5c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 8], edx
movzx edx, word [esp + 0x24]
mov dword [esi + 0xc], ecx
mov cx, word [esp + 0x34]
mov word [esi + 0x10], dx
movzx edx, word [esp + 0x18]
mov word [esi + 0x12], cx
mov cl, byte [esp + 0x13]
add edi, edi
mov word [esi + 0x14], dx
mov byte [esi + 0x16], cl
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x18]
add edi, edi
push edi
push edx
push eax
call fcn.004ad640
mov ecx, dword [esi + 0x18]
add esp, 0xc
cmp ebx, dword [esp + 0x28]
mov dword [edi + ecx], ebp
jl 0x453a7f
mov ecx, dword [esp + 0x1c]
movzx esi, word [ecx + 0x12]
movzx edi, word [ecx + 0x10]
mov ebx, dword [esp + 0x28]
mov eax, 1
cmp ebx, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
jle 0x453a7f
add ecx, 0x32
movzx edx, word [ecx]
cmp dx, si
jg 0x453a64
jne 0x453a6f
cmp word [ecx + 2], di
jle 0x453a6f
movzx edi, word [ecx + 2]
movzx esi, dx
mov dword [esp + 0x38], eax
inc eax
add ecx, 0x20
cmp eax, ebx
jl 0x453a54
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov ebp, dword [ebp + 0x3c]
test ebp, ebp
jne 0x4537a0
add dword [esp + 0x14], 0x20
sub dword [esp + 0x50], 1
jne 0x453790
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
inc ecx
cmp ecx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jl 0x453770
test eax, eax
jne 0x453aee
mov edi, dword [esp + 0x44]
push str.no_query_solution
call fcn.0042b190
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi]
add esp, 4
call fcn.00409ff0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret
cmp eax, 1
mov ebx, dword [esp + 0x30]
jle 0x453b14
lea ecx, [ebx + 0x20]
dec eax
jmp 0x453b00
mov dx, word [ebx + 0x12]
cmp dx, word [ecx + 0x12]
jle 0x453b0c
mov ebx, ecx
add ecx, 0x20
sub eax, 1
jne 0x453b00
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x78]
xor ecx, ecx
test ebp, ebp
jle 0x453b56
lea eax, [esi + 0x334]
jmp 0x453b30
mov edx, dword [ebx + 0x18]
mov edi, dword [edx + ecx*4]
mov dword [eax + 0x14], edi
mov dl, byte [edi + 0x10]
mov byte [eax], dl
mov edi, dword [esi + 4]
movzx edx, dl
lea edx, [edx + edx*8]
mov edx, dword [edi + edx*8 + 0x34]
mov dword [eax - 0x38], edx
inc ecx
add eax, 0x60
cmp ecx, ebp
jl 0x453b30
movzx eax, word [esi + 0x28]
test eax, 0x100
je 0x453ba5
test al, al
js 0x453ba5
cmp byte [esi + 0x2f], 0
jne 0x453ba5
cmp word [esp + 0x7c], 0
je 0x453ba5
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx + ebp*4 - 4]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x6c]
push eax
push edx
lea eax, [ebp - 1]
push eax
push 0x80
push ebx
push ecx
push esi
call fcn.00452ed0
mov edx, dword [esi + 0xc]
movsx eax, al
add esp, 0x1c
cmp eax, dword [edx]
jne 0x453ba5
mov byte [esi + 0x2f], 2
and dword [esi + 0x30], 0xfffffffb
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x30]
test eax, eax
je 0x453ce4
movzx edx, word [esi + 0x28]
mov cl, byte [ebx + 0x16]
mov byte [esi + 0x2d], cl
test dl, dl
jns 0x453bf5
movsx edx, byte [ebx + 0x16]
cmp edx, dword [eax]
jne 0x453bd1
mov byte [esi + 0x2f], 2
mov ecx, dword [esi + 0x10]
mov edi, dword [ecx + 0x30]
test edi, edi
je 0x453c86
movsx edx, byte [esi + 0x2d]
cmp edx, dword [edi]
jle 0x453c86
mov cl, byte [edi]
mov byte [esi + 0x2d], cl
jmp 0x453c86
mov ecx, dword [ebx + 8]
mov dword [esi + 0x48], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x4c], ecx
mov cl, byte [esi + 0x2d]
test cl, cl
jg 0x453c72
mov byte [esi + 0x2d], 0
test ebp, ebp
jle 0x453c86
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + ebp*4 - 4]
mov edx, dword [ecx + 0x2c]
test edx, 0x1000
jne 0x453c86
and edx, 0x104
cmp edx, 0x104
je 0x453c86
xor edx, edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
lea edx, [esp + 0x64]
push edx
push ecx
lea ecx, [ebp - 1]
push ecx
push 0x800
push ebx
push eax
push esi
call fcn.00452ed0
movsx ecx, al
mov eax, dword [esi + 8]
add esp, 0x1c
cmp ecx, dword [eax]
jne 0x453c86
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
or dword [esi + 0x30], 4
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ecx
jmp 0x453c86
test ebp, ebp
je 0x453c86
cmp cl, 1
jne 0x453c86
test dl, 3
je 0x453c86
or edi, 4
mov dword [esi + 0x30], edi
mov edx, 0x200
test word [esi + 0x28], dx
je 0x453ce4
movsx ecx, byte [esi + 0x2d]
cmp ecx, dword [eax]
jne 0x453ce4
xor ecx, ecx
cmp ebp, ecx
jle 0x453ce4
lea edx, [esp + 0x64]
push edx
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + ebp*4 - 4]
push edx
dec ebp
push ebp
push ecx
push ebx
push eax
push esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
call fcn.00452ed0
mov ecx, dword [esi + 8]
movsx eax, al
add esp, 0x1c
cmp eax, dword [ecx]
jne 0x453ce4
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
or dword [esi + 0x30], 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], eax
mov cx, word [ebx + 0x10]
mov edx, dword [esp + 0x44]
mov word [esi + 0x34], cx
mov ecx, dword [esp + 0x58]
mov eax, dword [edx]
call fcn.00409ff0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret