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

Disassembly:
sub esp, 0x68
mov eax, dword [0x517490]
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 0x48b46d
movzx eax, byte [ebp + 4]
push eax
call fcn.00491c11
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ebx
call fcn.00498e9a
xor esi, esi
add esp, 0x10
inc esi
jmp 0x48bab4
cmp dword [edi + 0x28], edx
je 0x48b484
movzx eax, byte [ebp + 4]
push eax
call fcn.00491c11
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x48b45c
push ebx
call fcn.0049d3e9
mov dl, byte [esp + 0x48]
mov esi, eax
mov dword [esp + 0x34], esi
pop ecx
cmp dl, 9
jne 0x48b4bf
mov eax, dword [ebp]
push dword [eax]
push dword [esp + 0x4c]
push 0x2a
push esi
call fcn.004a8e4a
push 0x10
push esi
call fcn.004a920d
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 0x48b4dc
movzx eax, byte [ebp + 4]
push eax
call fcn.00491c11
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
jmp 0x48b45c
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
je 0x48b4f7
mov ecx, dword [esp + 0x40]
push ecx
push ebp
push ebx
call fcn.0048bb2f
add esp, 0xc
jmp 0x48bad7
movzx eax, byte [ebp + 4]
sub eax, 0x70
je 0x48b7d5
dec eax
je 0x48b6f7
dec eax
je 0x48b7d5
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.004a8e4a
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.004a4bd9
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
jne 0x48bab0
push eax
push dword [esp + 0x28]
push 0x2a
push esi
call fcn.004a8e4a
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.004a4bd9
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 0x48b5e7
movsd qword [ebp + 0x48], xmm1
push dword [ebp + 0x28]
mov eax, dword [esp + 0x18]
push eax
call fcn.0049a532
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 0x48b627
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
jmp 0x48b617
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x48b612
push dword [ecx]
push eax
push ebx
call fcn.004883af
add esp, 0xc
push esi
call fcn.004af1c5
push esi
mov ebp, eax
call fcn.004af1c5
mov esi, dword [esp + 0x34]
mov ebx, eax
push ebp
push dword [esp + 0x40]
push esi
call fcn.00483d4d
mov edi, dword [esp + 0x44]
push ebp
push dword [esp + 0x28]
push 0x48
push edi
call fcn.004a8e4a
push esi
call fcn.0049cbf5
mov esi, eax
push esi
push dword [esp + 0x3c]
push 0x3f
push edi
call fcn.004a8e4a
push 0
push esi
push ebx
push dword [esp + 0x68]
mov edi, eax
push 0x33
push dword [esp + 0x7c]
call fcn.004a8ee7
add esp, 0x50
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.004a3c03
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.004918cd
mov esi, dword [esp + 0x60]
push ebx
push esi
call fcn.004b05c5
mov ebx, dword [esp + 0x48]
push edi
push ebx
push 0x5f
push esi
call fcn.004a8e4a
add esp, 0x48
push ebp
push esi
call fcn.004b05c5
push 0
lea eax, [ebx + 1]
push eax
push 0x2d
push esi
call fcn.004a8e4a
push 0
push ebx
push 0x2d
push esi
call fcn.004a8e4a
mov ebp, dword [esp + 0x5c]
add esp, 0x28
jmp 0x48b996
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.004a4bd9
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 0x48bab0
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 0x48b757
push ecx
push 0x7a
push esi
call fcn.004a8e31
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.004a4bd9
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 0x48b7bb
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x28]
call fcn.0049aa72
pop ecx
pop ecx
test eax, eax
je 0x48b7bb
movd xmm1, dword [esp + 0x38]
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x48b7bb
movsd qword [ebp + 0x48], xmm1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x48b99a
push eax
push esi
call fcn.004aee60
pop ecx
pop ecx
jmp 0x48b99a
cmp dl, 1
jne 0x48b7ee
cmp dword [ebp + 0x28], ecx
jne 0x48b7ee
cmp dword [ebp + 0x2c], ecx
jne 0x48b7ee
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
jmp 0x48b81c
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.004a8e4a
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.004a4bd9
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x48bab0
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.004a4bd9
push dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0049abee
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 0x48b8c7
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.0049a532
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 0x48b99e
cmp al, 5
jne 0x48b918
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
jmp 0x48b908
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x48b903
push dword [ecx]
push edx
push ebx
call fcn.004883af
add esp, 0xc
push esi
call fcn.004af1c5
push esi
mov ebx, eax
call fcn.004af1c5
push ebx
push ebp
push dword [esp + 0x3c]
mov edi, eax
call fcn.00483d4d
push ebx
push dword [esp + 0x28]
push 0x48
push esi
call fcn.004a8e4a
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.004918cd
add esp, 0x4c
push edi
push dword [esp + 0x34]
call fcn.004b05c5
mov edi, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x3c]
push edi
push 0x5f
push esi
call fcn.004a8e4a
push ebx
push esi
call fcn.004b05c5
push 0
push edi
push 0x2d
push esi
call fcn.004a8e4a
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.0048527f
add esp, 0x14
test byte [ebp + 6], 8
je 0x48bab0
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.00497d5f
mov edi, eax
mov dword [esp + 0x2c], edi
pop ecx
pop ecx
test edi, edi
jne 0x48b9f2
push 7
pop esi
jmp 0x48bab4
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 0x48ba53
mov edi, dword [esp + 0x28]
mov esi, eax
push ecx
push ebp
push ebx
call fcn.0048baea
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x48ba3b
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 0x48ba21
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 0x48ba95
push ebp
push eax
push esi
call fcn.004a908e
push 0xfffffffffffffffa
push edi
push dword [esp + 0x3c]
push esi
call fcn.004a90c6
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 0x48ba5f
mov ebp, dword [esp + 0x34]
mov ebp, dword [ebp + 0x1c]
mov dword [esp + 0x34], ebp
test ebp, ebp
jne 0x48ba53
push edi
push dword [esp + 0x18]
call fcn.00497c57
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.004a5ce4
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.004b94b6
add esp, 0x68
ret