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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, dword [edx + 0x30]
test esi, esi
je 0x496264
mov edi, dword [ecx]
mov eax, dword [esi]
mov ebx, ecx
cmp eax, dword [edi + 0x74]
jle 0x49626b
push str.too_many_terms_in_ORDER_BY_clause
push ebx
call fcn.0042af90
add esp, 8
jmp 0x49677c
xor eax, eax
jmp 0x496781
test eax, eax
jle 0x496289
lea ecx, [esi + 0xd]
nop word cs:[eax + eax]
nop dword [eax]
and byte [ecx], 0xfb
add ecx, 0x10
dec eax
jne 0x496280
mov dword [edx + 0x38], 0
mov eax, dword [edx + 0x34]
test eax, eax
je 0x4962b5
nop word [eax + eax]
mov dword [eax + 0x38], edx
mov edx, dword [edx + 0x34]
mov eax, dword [edx + 0x34]
test eax, eax
jne 0x4962a0
test edx, edx
je 0x496750
mov ecx, dword [esi]
lea eax, [esi + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], eax
test ecx, ecx
jle 0x496752
mov eax, dword [edx + 0x1c]
xor edi, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
jmp 0x496316
mov eax, dword [esp + 0x18]
mov word [eax + 0xc], di
mov eax, dword [esp + 0x18]
or byte [eax + 9], 4
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [esi]
inc edi
add eax, 0x10
cmp edi, ecx
jge 0x496720
mov dword [esp + 0x1c], 0xffffffff
test byte [eax + 9], 4
jne 0x496308
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov dword [esp + 0x10], 0
test eax, eax
jne 0x49634c
jmp 0x49636e
mov eax, dword [eax + 0x14]
add eax, 4
mov eax, dword [eax]
test eax, eax
je 0x49636e
mov ecx, dword [eax + 4]
test ecx, 0x41000
je 0x49636a
test ecx, 0x40000
jne 0x496340
add eax, 0xc
mov eax, dword [eax]
test eax, eax
jne 0x49634c
jmp 0x49636e
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
call fcn.004996b0
test eax, eax
mov dword [esp + 0x34], edi
je 0x4963a2
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax]
test edi, edi
jle 0x496734
cmp edi, eax
jle 0x49660a
jmp 0x496734
mov eax, dword [esp + 0x10]
cmp byte [eax], 0x3b
jne 0x496432
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x20], eax
jle 0x496432
mov eax, dword [esp + 0x10]
xor edi, edi
mov esi, dword [eax + 8]
jmp 0x4963d7
test esi, esi
je 0x496420
nop dword [eax]
inc edi
cmp edi, dword [esp + 0x20]
je 0x496432
mov ecx, dword [esp + 0x24]
mov eax, edi
shl eax, 4
test byte [ecx + eax + 0xd], 3
jne 0x4963d0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax + 8]
test edx, edx
je 0x4963c8
test esi, esi
je 0x4963d0
xor eax, eax
jmp 0x496410
movzx ebx, byte [ebx + 0x50ce7b]
cmp bl, byte [ecx + 0x50ce7b]
jne 0x4963d0
inc eax
movzx ebx, byte [edx + eax]
movzx ecx, byte [esi + eax]
cmp bl, cl
jne 0x496400
test bl, bl
jne 0x49640f
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
inc edi
mov dword [esp + 0x1c], edi
jmp 0x49660a
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
cmp byte [ebx + 0xc8], 1
ja 0x496470
cmp dword [esp + 0x10], 0
je 0x49646e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
call fcn.0048fa30
add esp, 8
mov edx, eax
jmp 0x496470
xor edx, edx
mov eax, dword [esp + 0x14]
xor edi, edi
cmp byte [eax + 0x51], 0
jne 0x4965ec
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x68]
mov esi, dword [eax + 0x1c]
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x10], 0
mov dword [esp + 0x5c], ebx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x74], 0x81
mov dword [esp + 0x70], 0
mov edi, dword [ebx]
cmp byte [ebx + 0xc8], 1
mov al, byte [edi + 0x55]
ja 0x4964e2
mov byte [edi + 0x55], 1
pcmpeqd xmm0, xmm0
test edx, edx
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
movdqa xmmword [esp + 0x40], xmm0
je 0x496565
mov byte [esp + 0xf], al
lea eax, [esp + 0x5c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], fcn.00493340
mov dword [esp + 0x48], 0x494d50
mov dword [esp + 0x4c], 0
mov dword [esp + 0x74], 0x81
mov dword [esp + 0x58], eax
mov ecx, dword [ebx + 0xd0]
mov eax, dword [ebx]
add ecx, dword [edx + 0x18]
mov dword [ebx + 0xd0], ecx
mov eax, dword [eax + 0x78]
cmp eax, ecx
jge 0x4965a2
mov ecx, ebx
mov ebx, edx
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.0042af90
add esp, 0xc
jmp 0x4965d5
mov ebx, edx
mov byte [edi + 0x55], al
mov eax, dword [esp + 0x20]
xor edi, edi
lea esi, [eax + 4]
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [esp + 0x20]
cmp edi, dword [eax]
jge 0x4965dc
mov edx, dword [esi]
xor ecx, ecx
push 0xffffffffffffffff
push ebx
call fcn.0048d5b0
add esp, 8
inc edi
add esi, 0x10
cmp eax, 1
jg 0x496580
jmp 0x4965de
lea ecx, [esp + 0x40]
mov esi, edx
call fcn.0048d1b0
mov ecx, dword [esi + 0x18]
mov eax, dword [esp + 0x40]
mov edx, 0x8010
mov ebx, esi
sub dword [eax + 0xd0], ecx
mov ecx, dword [esp + 0x74]
and ecx, edx
or dword [esi + 4], ecx
cmp dword [esp + 0x70], 0
jle 0x4966fb
mov al, byte [esp + 0xf]
mov byte [edi + 0x55], al
xor edi, edi
mov edx, ebx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
test edx, edx
je 0x496602
cmp byte [ebx + 0xc8], 1
ja 0x496602
mov ecx, dword [esp + 0x14]
call fcn.00469b50
test edi, edi
jle 0x4966e2
cmp byte [ebx + 0xc8], 1
ja 0x4962f8
mov ecx, dword [esp + 0x14]
mov edx, 0x35
push 0
call fcn.00435490
add esp, 4
test eax, eax
je 0x49677c
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x30], 0
mov byte [eax], 0x98
mov word [eax + 0x22], 0xffff
mov byte [eax + 0x34], 0
mov dword [eax + 0x18], 1
mov dword [eax + 4], 0x400
mov dword [eax + 8], edi
mov edx, dword [ecx]
cmp edx, dword [esp + 0x10]
je 0x4966bf
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, edx
mov edx, dword [edx + 0xc]
cmp byte [edx], 0x6f
je 0x4966b0
add ecx, 0xc
jmp 0x4966c3
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
mov dword [ecx], eax
je 0x4962f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
call fcn.00469b50
jmp 0x4962f0
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 1
jmp 0x496308
mov ecx, edi
xor edi, edi
cmp dword [eax + 0x24], 0
mov dl, byte [esp + 0xf]
mov byte [ecx + 0x55], dl
jg 0x4965de
jmp 0x49656a
mov edx, dword [edx + 0x38]
test edx, edx
je 0x496752
cmp dword [esp + 0x38], 0
jne 0x4962ca
jmp 0x496752
mov ecx, dword [esp + 0x34]
inc ecx
push eax
push str.ORDER
push ecx
push str._r__s_BY_term_out_of_range___should_be_between_1_and__d
push ebx
call fcn.0042af90
add esp, 0x14
jmp 0x49677c
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
cmovs ecx, eax
add esi, 0xd
xor edx, edx
nop
cmp ecx, edx
je 0x496781
inc edx
test byte [esi], 4
lea esi, [esi + 0x10]
jne 0x496760
push edx
push str._r_ORDER_BY_term_does_not_match_any_column_in_the_result_set
push ebx
call fcn.0042af90
add esp, 0xc
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret