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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [edx + 0x30]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
mov dword [esp + 0x34], esi
push edi
test eax, eax
je 0x440871
mov ecx, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
cmp eax, dword [ecx + 0x80]
jle 0x440760
push str.too_many_terms_in_ORDER_BY_clause
push esi
call fcn.00409b70
add esp, 8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test eax, eax
jle 0x44077c
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
add eax, 0x14
and dword [eax], 0xfffffffb
lea eax, [eax + 0x14]
inc ecx
cmp ecx, dword [esi]
jl 0x440771
lea ecx, [edx + 0x34]
mov dword [edx + 0x38], 0
cmp dword [ecx], 0
je 0x4407b0
nop dword [eax + eax]
mov eax, dword [ecx]
mov dword [eax + 0x38], edx
mov edx, dword [ecx]
cmp dword [edx + 0x34], 0
lea ecx, [edx + 0x34]
jne 0x440790
mov dword [esp + 0x30], edx
jmp 0x4407bd
mov esi, 1
test esi, esi
je 0x44084b
mov eax, dword [edx + 0x1c]
xor esi, esi
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
add ecx, 8
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
cmp dword [edi], eax
jle 0x44083c
mov edx, eax
nop word [eax + eax]
test byte [ecx + 0xc], 4
mov dword [esp + 0x24], 0xffffffff
jne 0x440828
mov esi, dword [ecx]
test esi, esi
je 0x440824
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x440879
test eax, 0x80000
je 0x44081d
mov esi, dword [esi + 0x14]
mov esi, dword [esi + 8]
jmp 0x440820
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x440804
mov esi, dword [esp + 0x28]
inc edx
add ecx, 0x14
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
cmp edx, dword [edi]
jl 0x4407f0
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x30], edx
test edx, edx
jne 0x4407b5
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x440871
add ecx, 0x14
nop word [eax + eax]
inc eax
test byte [ecx], 4
je 0x440bac
add ecx, 0x14
cmp eax, edx
jl 0x440860
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x440824
test eax, 0x800
je 0x440889
mov edi, dword [esi + 8]
jmp 0x4408d0
movzx eax, byte [esi]
sub eax, 0xad
je 0x4408b2
sub eax, 1
jne 0x440921
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
call fcn.00444350
test eax, eax
je 0x440921
mov edi, dword [esp + 0x24]
jmp 0x4408d0
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.00444350
test eax, eax
je 0x440921
mov edi, dword [esp + 0x24]
neg edi
mov eax, dword [esp + 0x3c]
test edi, edi
jle 0x4408e0
cmp edi, dword [eax]
jle 0x440ac4
push dword [eax]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
inc eax
push str.ORDER
push eax
push str._r__s_BY_term_out_of_range___should_be_between_1_and__d
push edi
call fcn.00409b70
mov ecx, dword [edi]
add esp, 0x14
test byte [esi + 4], 3
jne 0x440911
cmp dword [esi + 0x24], 0
jg 0x440b9b
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x440901
lea eax, [esi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x3c]
push esi
call fcn.004406a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x440ac6
mov ecx, dword [esp + 0x18]
mov edx, esi
push eax
push eax
call fcn.00442e60
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x1c], eax
cmp byte [ecx + 0x57], 0
jne 0x440ab9
mov edx, dword [esp + 0x38]
xorps xmm0, xmm0
mov eax, dword [esp + 0x30]
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x64], edi
mov edi, dword [edx]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], 0x80081
mov al, byte [edi + 0x5b]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x17], al
mov byte [edi + 0x5b], 1
call fcn.004412b0
mov cl, byte [esp + 0x17]
mov byte [edi + 0x5b], cl
xor edi, edi
test eax, eax
jne 0x4409f4
mov eax, dword [esp + 0x40]
cmp dword [eax], edi
jle 0x4409f2
add eax, 8
mov dword [esp + 0x24], eax
mov edx, dword [eax]
xor ecx, ecx
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.004494f0
add esp, 8
inc edi
cmp eax, 2
jl 0x4409f4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
add eax, 0x14
mov dword [esp + 0x24], eax
cmp edi, dword [ecx]
jl 0x4409c7
xor edi, edi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], edi
cmp byte [edx + 0xd8], 2
jb 0x440ab1
test edi, edi
jle 0x440ab1
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
mov edi, dword [edx]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x70], edx
mov edx, esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x88], 0x80081
mov dword [esp + 0x84], 0
mov al, byte [edi + 0x5b]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x17], al
mov byte [edi + 0x5b], 1
call fcn.004412b0
mov cl, byte [esp + 0x17]
mov byte [edi + 0x5b], cl
test eax, eax
jne 0x440aad
mov eax, dword [esp + 0x44]
xor edi, edi
cmp dword [eax], edi
jle 0x440aad
add eax, 8
mov dword [esp + 0x40], eax
mov edx, dword [eax]
xor ecx, ecx
push 0xffffffffffffffff
push esi
call fcn.004494f0
add esp, 8
cmp eax, 2
jl 0x440aad
mov ecx, dword [esp + 0x44]
inc edi
mov eax, dword [esp + 0x40]
add eax, 0x14
mov dword [esp + 0x40], eax
cmp edi, dword [ecx]
jl 0x440a85
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x440ac4
mov edx, eax
call fcn.00442c20
test edi, edi
jle 0x440b81
mov eax, dword [esp + 0x38]
cmp byte [eax + 0xd8], 2
jae 0x440b6c
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push 0
push eax
mov edx, 0x9b
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.00442540
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
je 0x440755
mov ecx, dword [esp + 0x2c]
or dword [eax + 4], 0x800
mov dword [eax + 8], edi
mov edx, dword [ecx]
cmp edx, esi
jne 0x440b29
mov dword [ecx], eax
jmp 0x440b48
mov eax, dword [edx + 0xc]
lea ecx, [edx + 0xc]
cmp byte [eax], 0x71
jne 0x440b41
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
lea ecx, [edx + 0xc]
cmp byte [eax], 0x71
je 0x440b34
mov eax, dword [esp + 0x44]
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.00442c20
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
or dword [ecx + 0xc], 4
mov word [ecx + 0x10], di
mov edi, dword [esp + 0x20]
jmp 0x440824
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
or dword [ecx + 0xc], 4
jmp 0x440824
mov ecx, dword [esp + 0x2c]
mov esi, 1
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x28], esi
jmp 0x440828
mov eax, dword [esi + 0x24]
mov dword [ecx + 0x44], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push str._r_ORDER_BY_term_does_not_match_any_column_in_the_result_set
push dword [esp + 0x40]
call fcn.00409b70
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret