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

Disassembly:
sub esp, 0x68
mov eax, dword [0x518450]
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 0x48ba48
movzx eax, byte [ebp + 4]
push eax
call fcn.004921ec
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ebx
call fcn.00499475
xor esi, esi
add esp, 0x10
inc esi
jmp 0x48c08f
cmp dword [edi + 0x28], edx
je 0x48ba5f
movzx eax, byte [ebp + 4]
push eax
call fcn.004921ec
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x48ba37
push ebx
call fcn.0049d9c4
mov dl, byte [esp + 0x48]
mov esi, eax
mov dword [esp + 0x34], esi
pop ecx
cmp dl, 9
jne 0x48ba9a
mov eax, dword [ebp]
push dword [eax]
push dword [esp + 0x4c]
push 0x2a
push esi
call fcn.004a9403
push 0x10
push esi
call fcn.004a97c6
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 0x48bab7
movzx eax, byte [ebp + 4]
push eax
call fcn.004921ec
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
jmp 0x48ba37
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
je 0x48bad2
mov ecx, dword [esp + 0x40]
push ecx
push ebp
push ebx
call fcn.0048c10a
add esp, 0xc
jmp 0x48c0b2
movzx eax, byte [ebp + 4]
sub eax, 0x70
je 0x48bdb0
dec eax
je 0x48bcd2
dec eax
je 0x48bdb0
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.004a9403
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.004a5192
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
jne 0x48c08b
push eax
push dword [esp + 0x28]
push 0x2a
push esi
call fcn.004a9403
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.004a5192
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 0x48bbc2
movsd qword [ebp + 0x48], xmm1
push dword [ebp + 0x28]
mov eax, dword [esp + 0x18]
push eax
call fcn.0049ab0d
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 0x48bc02
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
jmp 0x48bbf2
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x48bbed
push dword [ecx]
push eax
push ebx
call fcn.0048898a
add esp, 0xc
push esi
call fcn.004af77e
push esi
mov ebp, eax
call fcn.004af77e
mov esi, dword [esp + 0x34]
mov ebx, eax
push ebp
push dword [esp + 0x40]
push esi
call fcn.00484328
mov edi, dword [esp + 0x44]
push ebp
push dword [esp + 0x28]
push 0x48
push edi
call fcn.004a9403
push esi
call fcn.0049d1d0
mov esi, eax
push esi
push dword [esp + 0x3c]
push 0x3f
push edi
call fcn.004a9403
push 0
push esi
push ebx
push dword [esp + 0x68]
mov edi, eax
push 0x33
push dword [esp + 0x7c]
call fcn.004a94a0
add esp, 0x50
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.004a41bc
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.00491ea8
mov esi, dword [esp + 0x60]
push ebx
push esi
call fcn.004b0b7e
mov ebx, dword [esp + 0x48]
push edi
push ebx
push 0x5f
push esi
call fcn.004a9403
add esp, 0x48
push ebp
push esi
call fcn.004b0b7e
push 0
lea eax, [ebx + 1]
push eax
push 0x2d
push esi
call fcn.004a9403
push 0
push ebx
push 0x2d
push esi
call fcn.004a9403
mov ebp, dword [esp + 0x5c]
add esp, 0x28
jmp 0x48bf71
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.004a5192
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 0x48c08b
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 0x48bd32
push ecx
push 0x7a
push esi
call fcn.004a93ea
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.004a5192
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 0x48bd96
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x28]
call fcn.0049b04d
pop ecx
pop ecx
test eax, eax
je 0x48bd96
movd xmm1, dword [esp + 0x38]
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x48bd96
movsd qword [ebp + 0x48], xmm1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x48bf75
push eax
push esi
call fcn.004af419
pop ecx
pop ecx
jmp 0x48bf75
cmp dl, 1
jne 0x48bdc9
cmp dword [ebp + 0x28], ecx
jne 0x48bdc9
cmp dword [ebp + 0x2c], ecx
jne 0x48bdc9
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
jmp 0x48bdf7
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.004a9403
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.004a5192
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x48c08b
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.004a5192
push dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0049b1c9
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 0x48bea2
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.0049ab0d
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 0x48bf79
cmp al, 5
jne 0x48bef3
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
jmp 0x48bee3
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x48bede
push dword [ecx]
push edx
push ebx
call fcn.0048898a
add esp, 0xc
push esi
call fcn.004af77e
push esi
mov ebx, eax
call fcn.004af77e
push ebx
push ebp
push dword [esp + 0x3c]
mov edi, eax
call fcn.00484328
push ebx
push dword [esp + 0x28]
push 0x48
push esi
call fcn.004a9403
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.00491ea8
add esp, 0x4c
push edi
push dword [esp + 0x34]
call fcn.004b0b7e
mov edi, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x3c]
push edi
push 0x5f
push esi
call fcn.004a9403
push ebx
push esi
call fcn.004b0b7e
push 0
push edi
push 0x2d
push esi
call fcn.004a9403
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.0048585a
add esp, 0x14
test byte [ebp + 6], 8
je 0x48c08b
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.0049833a
mov edi, eax
mov dword [esp + 0x2c], edi
pop ecx
pop ecx
test edi, edi
jne 0x48bfcd
push 7
pop esi
jmp 0x48c08f
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 0x48c02e
mov edi, dword [esp + 0x28]
mov esi, eax
push ecx
push ebp
push ebx
call fcn.0048c0c5
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x48c016
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 0x48bffc
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 0x48c070
push ebp
push eax
push esi
call fcn.004a9647
push 0xfffffffffffffffa
push edi
push dword [esp + 0x3c]
push esi
call fcn.004a967f
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 0x48c03a
mov ebp, dword [esp + 0x34]
mov ebp, dword [ebp + 0x1c]
mov dword [esp + 0x34], ebp
test ebp, ebp
jne 0x48c02e
push edi
push dword [esp + 0x18]
call fcn.00498232
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.004a629d
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.004b9a6c
add esp, 0x68
ret