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

Disassembly:
sub esp, 0x68
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x74]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov eax, dword [ebx]
mov esi, ecx
push edi
lea edi, [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ecx
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x3c], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
cmp dword [edi + 0x18], edx
je 0x4855be
movzx eax, byte [ebp + 4]
push eax
call fcn.0048bd62
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ebx
call fcn.00492feb
xor esi, esi
add esp, 0x10
inc esi
jmp 0x485c05
cmp dword [edi + 0x28], edx
je 0x4855d5
movzx eax, byte [ebp + 4]
push eax
call fcn.0048bd62
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4855ad
push ebx
call fcn.0049753d
mov dl, byte [esp + 0x48]
mov esi, eax
mov dword [esp + 0x34], esi
pop ecx
cmp dl, 9
jne 0x485610
mov eax, dword [ebp]
push dword [eax]
push dword [esp + 0x4c]
push 0x2a
push esi
call fcn.004a2f7a
push 0x10
push esi
call fcn.004a333d
add esp, 0x18
push 8
pop eax
mov dl, al
mov byte [esp + 0x44], dl
mov eax, dword [ebp]
mov ecx, dword [edi]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x48562d
movzx eax, byte [ebp + 4]
push eax
call fcn.0048bd62
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
jmp 0x4855ad
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
je 0x485648
mov ecx, dword [esp + 0x40]
push ecx
push ebp
push ebx
call fcn.00485c80
add esp, 0xc
jmp 0x485c28
movzx eax, byte [ebp + 4]
sub eax, 0x70
je 0x485926
dec eax
je 0x485848
dec eax
je 0x485926
mov ecx, dword [ebx + 0x44]
push 0
push ecx
push 0x2a
lea eax, [ecx + 1]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
inc eax
push esi
mov dword [ebx + 0x44], eax
call fcn.004a2f7a
mov edx, dword [esp + 0x20]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
push 8
pop ecx
or word [eax + 6], cx
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x22c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x64]
push eax
push edi
push ebx
mov word [esp + 0x70], 1
mov dword [esp + 0x74], edx
call fcn.0049ed09
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
jne 0x485c01
push eax
push dword [esp + 0x28]
push 0x2a
push esi
call fcn.004a2f7a
mov dword [ebp + 0x3c], eax
xor ecx, ecx
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
mov eax, dword [ebx + 0x22c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x64]
push eax
push ebp
push ebx
call fcn.0049ed09
movsd xmm0, qword [ebp + 0x48]
add esp, 0x1c
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], edi
movsd xmm1, qword [edi + 0x48]
comisd xmm0, xmm1
mov dword [esp + 0x3c], eax
jbe 0x485738
movsd qword [ebp + 0x48], xmm1
push dword [ebp + 0x28]
mov eax, dword [esp + 0x18]
push eax
call fcn.00494683
cmp byte [esp + 0x4c], 5
mov eax, dword [esp + 0x30]
pop ecx
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x3c]
pop ecx
mov dword [ebp + 0x2c], eax
jne 0x485778
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
jmp 0x485768
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x485763
push dword [ecx]
push eax
push ebx
call fcn.00482500
add esp, 0xc
push esi
call fcn.004a92f5
push esi
mov ebp, eax
call fcn.004a92f5
mov esi, dword [esp + 0x34]
mov ebx, eax
push ebp
push dword [esp + 0x40]
push esi
call fcn.0047de9b
mov edi, dword [esp + 0x44]
push ebp
push dword [esp + 0x28]
push 0x48
push edi
call fcn.004a2f7a
push esi
call fcn.00496d46
mov esi, eax
push esi
push dword [esp + 0x3c]
push 0x3f
push edi
call fcn.004a2f7a
push 0
push esi
push ebx
push dword [esp + 0x68]
mov edi, eax
push 0x33
push dword [esp + 0x7c]
call fcn.004a3017
add esp, 0x50
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.0049dd33
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push ebp
push ebx
push edx
mov eax, dword [ecx]
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
push dword [eax]
push edx
push eax
push ecx
push esi
call fcn.0048ba1e
mov esi, dword [esp + 0x60]
push ebx
push esi
call fcn.004aa6f5
mov ebx, dword [esp + 0x48]
push edi
push ebx
push 0x5f
push esi
call fcn.004a2f7a
add esp, 0x48
push ebp
push esi
call fcn.004aa6f5
push 0
lea eax, [ebx + 1]
push eax
push 0x2d
push esi
call fcn.004a2f7a
push 0
push ebx
push 0x2d
push esi
call fcn.004a2f7a
mov ebp, dword [esp + 0x5c]
add esp, 0x28
jmp 0x485ae7
mov eax, dword [ebp + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x22c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push eax
push edi
push ebx
mov dword [esp + 0x30], ecx
call fcn.0049ed09
xor ecx, ecx
mov dword [esp + 0x24], eax
add esp, 0xc
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
test eax, eax
jne 0x485c01
mov dword [ebp + 0x1c], ecx
mov ecx, dword [edi + 0x30]
mov dword [ebp + 0x30], ecx
mov eax, dword [edi + 0x34]
mov dword [ebp + 0x34], eax
test ecx, ecx
je 0x4858a8
push ecx
push 0x7a
push esi
call fcn.004a2f61
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x22c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x44]
push eax
push ebp
push ebx
call fcn.0049ed09
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], edi
movsd xmm0, qword [edi + 0x48]
addsd xmm0, qword [ebp + 0x48]
mov dword [esp + 0x3c], eax
movsd qword [ebp + 0x48], xmm0
cmp dword [edi + 0x28], 0
je 0x48590c
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x28]
call fcn.00494bc3
pop ecx
pop ecx
test eax, eax
je 0x48590c
movd xmm1, dword [esp + 0x38]
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x48590c
movsd qword [ebp + 0x48], xmm1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x485aeb
push eax
push esi
call fcn.004a8f90
pop ecx
pop ecx
jmp 0x485aeb
cmp dl, 1
jne 0x48593f
cmp dword [ebp + 0x28], ecx
jne 0x48593f
cmp dword [ebp + 0x2c], ecx
jne 0x48593f
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
jmp 0x48596d
mov ecx, dword [ebx + 0x44]
push 0
push ecx
push 0x2a
lea eax, [ecx + 1]
mov dword [esp + 0x1c], ecx
push esi
mov dword [ebx + 0x44], eax
call fcn.004a2f7a
add esp, 0x10
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
push 8
pop ecx
or word [eax + 6], cx
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x22c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x64]
push eax
push edi
push ebx
mov word [esp + 0x70], 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
call fcn.0049ed09
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x485c01
cmp byte [ebp + 4], 0x72
mov ecx, dword [ebp + 0x28]
sete al
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x2c]
inc al
xor edx, edx
mov byte [esp + 0x64], al
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x2c], edx
mov eax, dword [ebx + 0x22c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x64]
push eax
push ebp
push ebx
mov dword [esp + 0x34], ecx
call fcn.0049ed09
push dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00494d3f
mov eax, dword [ebp + 0x1c]
add esp, 0x14
and dword [ebp + 0x18], 0
cmp byte [ebp + 4], 0x70
mov dword [esp + 0x3c], eax
mov dword [ebp + 0x1c], edi
jne 0x485a18
movsd xmm0, qword [edi + 0x48]
addsd xmm0, qword [ebp + 0x48]
movsd qword [ebp + 0x48], xmm0
push dword [ebp + 0x28]
mov edi, dword [esp + 0x18]
push edi
call fcn.00494683
mov eax, dword [esp + 0x40]
xor edx, edx
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x2c], eax
mov al, byte [esp + 0x4c]
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x34], edx
pop ecx
pop ecx
cmp al, 1
je 0x485aef
cmp al, 5
jne 0x485a69
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
jmp 0x485a59
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x485a54
push dword [ecx]
push edx
push ebx
call fcn.00482500
add esp, 0xc
push esi
call fcn.004a92f5
push esi
mov ebx, eax
call fcn.004a92f5
push ebx
push ebp
push dword [esp + 0x3c]
mov edi, eax
call fcn.0047de9b
push ebx
push dword [esp + 0x28]
push 0x48
push esi
call fcn.004a2f7a
mov eax, dword [ebp]
lea ecx, [esp + 0x68]
mov esi, dword [esi + 0x1c]
push ebx
push edi
push ecx
push 0xffffffffffffffff
push 0
push dword [eax]
push dword [esp + 0x4c]
push eax
push ebp
push dword [esp + 0x74]
call fcn.0048ba1e
add esp, 0x4c
push edi
push dword [esp + 0x34]
call fcn.004aa6f5
mov edi, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x3c]
push edi
push 0x5f
push esi
call fcn.004a2f7a
push ebx
push esi
call fcn.004aa6f5
push 0
push edi
push 0x2d
push esi
call fcn.004a2f7a
add esp, 0x30
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
xor eax, eax
cmp byte [ebp + 4], 0x71
setne al
push eax
push dword [esp + 0x24]
movzx eax, byte [ebp + 4]
push dword [esp + 0x24]
push eax
push ebx
call fcn.0047f3cd
add esp, 0x14
test byte [ebp + 6], 8
je 0x485c01
mov eax, dword [ebp]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
imul eax, eax, 5
add eax, 0x10
push eax
push edi
call fcn.00491eb0
mov edi, eax
mov dword [esp + 0x2c], edi
pop ecx
pop ecx
test edi, edi
jne 0x485b43
push 7
pop esi
jmp 0x485c05
mov eax, dword [esp + 0x14]
lea ecx, [edi + 0xc]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4d]
mov byte [edi + 4], al
mov eax, dword [esp + 0x1c]
mov word [edi + 6], ax
test eax, eax
jle 0x485ba4
mov edi, dword [esp + 0x28]
mov esi, eax
push ecx
push ebp
push ebx
call fcn.00485c3b
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x485b8c
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
mov dword [edi], eax
mov ecx, dword [esp + 0x20]
add edi, 4
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, esi
jl 0x485b72
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
and dword [esp + 0x20], 0
lea ebx, [ebp + 0x38]
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
test eax, eax
js 0x485be6
push ebp
push eax
push esi
call fcn.004a31be
push 0xfffffffffffffffa
push edi
push dword [esp + 0x3c]
push esi
call fcn.004a31f6
or dword [ebx], 0xffffffff
add esp, 0x1c
mov ecx, dword [esp + 0x20]
add ebx, 4
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, 2
jl 0x485bb0
mov ebp, dword [esp + 0x34]
mov ebp, dword [ebp + 0x1c]
mov dword [esp + 0x34], ebp
test ebp, ebp
jne 0x485ba4
push edi
push dword [esp + 0x18]
call fcn.00491da8
pop ecx
pop ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
push dword [esp + 0x3c]
push dword [esp + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 0xc], eax
call fcn.0049fe14
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x68
ret