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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff64
mov esi, eax
xor eax, eax
mov ebx, edx
mov dword [esp], ecx
mov dword [esp + 8], eax
mov edx, dword [esi]
mov ecx, 4
mov dword [esp + 0xc], edx
mov ebp, dword [ebx + 0x1c]
mov eax, dword [esp]
push esi
lea edi, [esp + 0x70]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x18], 0
pop esi
je 0x4aa52e
xor eax, eax
mov al, byte [ebx + 4]
call fcn.004a9774
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push esi
call fcn.004d8128
add esp, 0xc
mov dword [esp + 4], 1
jmp 0x4aac34
cmp dword [ebp + 0x28], 0
je 0x4aa55a
xor eax, eax
mov al, byte [ebx + 4]
call fcn.004a9774
push eax
push str.LIMIT_clause_should_come_after__s_not_before
push esi
call fcn.004d8128
add esp, 0xc
mov dword [esp + 4], 1
jmp 0x4aac34
mov eax, esi
call fcn.004aa2ec
mov edi, eax
xor eax, eax
mov al, byte [esp + 0x6c]
cmp eax, 9
jne 0x4aa591
mov edx, dword [ebx]
mov eax, edi
mov ecx, dword [edx]
mov edx, 0x29
push ecx
mov ecx, dword [esp + 0x74]
call fcn.004c7628
mov dl, 0x10
mov eax, edi
call fcn.004c7948
mov byte [esp + 0x6c], 8
mov ecx, dword [ebx]
mov eax, dword [ebp]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
je 0x4aa5c2
xor eax, eax
mov al, byte [ebx + 4]
call fcn.004a9774
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push esi
call fcn.004d8128
add esp, 0xc
mov dword [esp + 4], 1
jmp 0x4aac34
cmp dword [ebx + 0x18], 0
je 0x4aa5d9
mov ecx, dword [esp]
mov edx, ebx
mov eax, esi
call fcn.004aaf04
jmp 0x4aac59
mov dl, byte [ebx + 4]
sub dl, 0x70
je 0x4aa6dd
dec dl
je 0x4aa5f6
dec dl
je 0x4aa6dd
jmp 0x4aa8ee
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x28]
mov dword [ebp + 0x28], ecx
lea ecx, [esp + 0x6c]
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
mov eax, esi
mov edx, dword [esi + 0x228]
mov dword [esp + 0x10], edx
mov edx, ebp
call fcn.004acb48
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [ebx + 0x28], ecx
xor eax, eax
mov dword [ebx + 0x2c], eax
cmp dword [esp + 4], 0
je 0x4aa639
jmp 0x4aac34
xor edx, edx
mov dword [ebx + 0x1c], edx
mov ecx, dword [ebp + 0x30]
mov dword [ebx + 0x30], ecx
mov eax, dword [ebp + 0x34]
mov dword [ebx + 0x34], eax
cmp dword [ebx + 0x30], 0
je 0x4aa663
mov ecx, dword [ebx + 0x30]
mov edx, 0x73
mov eax, edi
call fcn.004c761c
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x228]
mov edx, ebx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x6c]
mov eax, esi
call fcn.004acb48
mov dword [esp + 4], eax
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 8], ecx
mov dword [ebx + 0x1c], ebp
fld qword [ebp + 0x44]
fadd qword [ebx + 0x44]
fstp qword [ebx + 0x44]
wait
cmp dword [ebp + 0x28], 0
je 0x4aa6c2
lea edx, [esp + 0x1c]
mov eax, dword [ebp + 0x28]
call fcn.004ba08c
test eax, eax
je 0x4aa6c2
fild dword [esp + 0x1c]
fld qword [ebx + 0x44]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x4aa6c2
fild dword [esp + 0x1c]
fstp qword [ebx + 0x44]
wait
cmp dword [esp + 0x18], 0
je 0x4aab09
mov edx, dword [esp + 0x18]
mov eax, edi
call fcn.004c795c
jmp 0x4aab09
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], 1
xor edx, edx
mov dl, byte [esp + 0x6c]
cmp edx, dword [esp + 0x28]
jne 0x4aa70c
cmp dword [ebx + 0x28], 0
jne 0x4aa70c
cmp dword [ebx + 0x2c], 0
jne 0x4aa70c
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
jmp 0x4aa73b
mov ecx, dword [esi + 0x44]
inc dword [esi + 0x44]
mov dword [esp + 0x20], ecx
push 0
mov ecx, dword [esp + 0x24]
mov edx, 0x29
mov eax, edi
call fcn.004c7628
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x38], ecx
mov eax, dword [ebx + 0x24]
or word [eax + 6], 8
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
call fcn.004a8ba8
mov ecx, dword [esi + 0x228]
mov edx, ebp
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x7c]
mov eax, esi
call fcn.004acb48
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4aa773
jmp 0x4aac34
xor ecx, ecx
mov cl, byte [ebx + 4]
cmp ecx, 0x72
jne 0x4aa784
mov byte [esp + 0x24], 2
jmp 0x4aa789
mov byte [esp + 0x24], 1
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0x1c], eax
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x2c], edx
mov dword [ebx + 0x28], ecx
mov eax, dword [ebx + 0x2c]
xor edx, edx
mov dword [esp + 0x30], eax
mov dword [ebx + 0x2c], edx
mov cl, byte [esp + 0x24]
mov edx, ebx
mov byte [esp + 0x7c], cl
lea ecx, [esp + 0x7c]
mov eax, dword [esi + 0x228]
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.004acb48
mov dword [esp + 4], eax
mov edx, dword [ebx + 0x18]
mov eax, dword [esp + 0xc]
call fcn.004b9f98
mov ecx, dword [ebx + 0x1c]
xor eax, eax
mov dword [esp + 8], ecx
xor ecx, ecx
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x18], ecx
mov al, byte [ebx + 4]
cmp eax, 0x70
jne 0x4aa7f8
fld qword [ebp + 0x44]
fadd qword [ebx + 0x44]
fstp qword [ebx + 0x44]
wait
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0xc]
call fcn.004b9708
mov edx, dword [esp + 0x2c]
xor eax, eax
mov dword [ebx + 0x28], edx
xor edx, edx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x2c], ecx
xor ecx, ecx
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], eax
mov dl, byte [esp + 0x6c]
cmp edx, dword [esp + 0x28]
je 0x4aab09
xor ecx, ecx
mov cl, byte [esp + 0x6c]
cmp ecx, 5
jne 0x4aa84f
mov eax, ebx
jmp 0x4aa83d
mov eax, edx
mov edx, dword [eax + 0x1c]
test edx, edx
jne 0x4aa83b
mov ecx, dword [eax]
xor edx, edx
mov eax, esi
call fcn.004a9d60
mov eax, edi
call fcn.004c76ec
mov ebp, eax
mov eax, edi
call fcn.004c76ec
mov dword [esp + 0x38], eax
mov ecx, ebp
mov edx, ebx
mov eax, esi
call fcn.004aa318
push ebp
mov ecx, dword [esp + 0x24]
mov edx, 0x41
mov eax, edi
call fcn.004c7628
mov eax, edi
call fcn.004c7844
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x20]
push edx
mov ecx, dword [ebx]
mov ecx, dword [ecx]
push ecx
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x7c]
push eax
mov edx, dword [esp + 0x4c]
push edx
push ebp
mov ecx, dword [ebx]
mov edx, ebx
mov eax, esi
call fcn.004a9328
mov edx, dword [esp + 0x38]
mov eax, edi
call fcn.004c7744
mov ecx, dword [esp + 0x3c]
mov edx, 0x43
push ecx
mov eax, edi
mov ecx, dword [esp + 0x24]
call fcn.004c7628
mov edx, ebp
mov eax, edi
call fcn.004c7744
push 0
mov ecx, dword [esp + 0x24]
mov edx, 0x2b
mov eax, edi
call fcn.004c7628
jmp 0x4aab09
mov ecx, dword [esi + 0x44]
inc dword [esi + 0x44]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x44]
inc dword [esi + 0x44]
mov dword [esp + 0x44], ecx
push 0
mov ecx, dword [esp + 0x44]
mov edx, 0x29
mov eax, edi
call fcn.004c7628
mov dword [ebx + 0x38], eax
lea eax, [esp + 0x8c]
mov ecx, dword [ebx + 0x24]
mov edx, 1
or word [ecx + 6], 8
mov ecx, dword [esp + 0x40]
call fcn.004a8ba8
mov eax, dword [esi + 0x228]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, esi
mov edx, ebp
call fcn.004acb48
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4aa95e
jmp 0x4aac34
push 0
mov ecx, dword [esp + 0x48]
mov edx, 0x29
mov eax, edi
call fcn.004c7628
mov dword [ebx + 0x3c], eax
xor ecx, ecx
mov dword [ebx + 0x1c], ecx
xor edx, edx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x50], eax
mov dword [ebx + 0x28], edx
mov ecx, dword [ebx + 0x2c]
xor eax, eax
mov dword [esp + 0x54], ecx
mov dword [ebx + 0x2c], eax
mov edx, dword [esp + 0x44]
mov eax, esi
mov dword [esp + 0x90], edx
mov edx, ebx
mov ecx, dword [esi + 0x228]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x8c]
call fcn.004acb48
mov dword [esp + 4], eax
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 8], ecx
mov dword [ebx + 0x1c], ebp
fld qword [ebx + 0x44]
fld qword [ebp + 0x44]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x4aa9e0
mov edx, dword [ebp + 0x44]
mov dword [ebx + 0x44], edx
mov edx, dword [ebp + 0x48]
mov dword [ebx + 0x48], edx
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0xc]
call fcn.004b9708
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x2c], ecx
xor eax, eax
mov al, byte [esp + 0x6c]
cmp eax, 5
jne 0x4aaa1d
mov eax, ebx
jmp 0x4aaa0b
mov eax, edx
mov edx, dword [eax + 0x1c]
test edx, edx
jne 0x4aaa09
mov ecx, dword [eax]
xor edx, edx
mov eax, esi
call fcn.004a9d60
mov eax, edi
call fcn.004c76ec
mov ebp, eax
mov eax, edi
call fcn.004c76ec
mov dword [esp + 0x48], eax
mov ecx, ebp
mov edx, ebx
mov eax, esi
call fcn.004aa318
push ebp
mov ecx, dword [esp + 0x44]
mov edx, 0x41
mov eax, edi
call fcn.004c7628
mov eax, esi
call fcn.004bca7c
mov dword [esp + 0x58], eax
mov eax, edi
mov edx, dword [esp + 0x58]
push edx
mov edx, 0x3b
mov ecx, dword [esp + 0x44]
call fcn.004c7628
mov dword [esp + 0x4c], eax
mov eax, edi
mov ecx, dword [esp + 0x48]
mov edx, 0x31
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push 0
mov ecx, dword [esp + 0x50]
call fcn.004c76b4
mov edx, dword [esp + 0x58]
mov eax, esi
call fcn.004bca98
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x7c]
push edx
mov edx, ebx
mov ecx, dword [esp + 0x5c]
mov eax, esi
push ecx
push ebp
mov ecx, dword [ebx]
call fcn.004a9328
mov edx, dword [esp + 0x48]
mov eax, edi
call fcn.004c7744
mov ecx, dword [esp + 0x4c]
mov edx, 0x43
push ecx
mov eax, edi
mov ecx, dword [esp + 0x44]
call fcn.004c7628
mov edx, ebp
mov eax, edi
call fcn.004c7744
push 0
mov ecx, dword [esp + 0x48]
mov edx, 0x2b
mov eax, edi
call fcn.004c7628
push 0
mov ecx, dword [esp + 0x44]
mov edx, 0x2b
mov eax, edi
call fcn.004c7628
mov ecx, dword [esp + 0x14]
push ecx
xor eax, eax
mov al, byte [ebx + 4]
cmp eax, 0x71
setne dl
and edx, 1
push edx
mov edx, eax
mov ecx, dword [esp + 0x18]
mov eax, esi
call fcn.004a97e4
test byte [ebx + 6], 8
je 0x4aac34
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0xc]
lea edx, [edx + edx*4]
add edx, 0x10
call fcn.004de258
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x5c], 0
jne 0x4aab67
mov dword [esp + 4], 7
jmp 0x4aac34
mov edx, dword [esp + 0xc]
xor ebp, ebp
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x5c]
mov ecx, dword [ecx + 0xc]
mov al, byte [ecx + 0x4d]
mov byte [edx + 4], al
mov ax, word [esp + 0x68]
mov ecx, dword [esp + 0x5c]
mov word [ecx + 6], ax
mov eax, dword [esp + 0x5c]
add eax, 0xc
mov dword [esp + 0x64], eax
cmp ebp, dword [esp + 0x68]
jge 0x4aabce
mov ecx, ebp
mov edx, ebx
mov eax, esi
call fcn.004aa490
mov edx, dword [esp + 0x64]
mov dword [edx], eax
mov ecx, dword [esp + 0x64]
cmp dword [ecx], 0
jne 0x4aabc2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x64]
mov eax, dword [ecx + 0x2c]
mov dword [edx], eax
inc ebp
add dword [esp + 0x64], 4
cmp ebp, dword [esp + 0x68]
jl 0x4aab9b
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x60], 0
je 0x4aac27
xor ebp, ebp
mov eax, dword [esp + 0x60]
lea ebx, [eax + 0x38]
mov esi, dword [ebx]
test esi, esi
jge 0x4aabea
jmp 0x4aac15
mov ecx, dword [esp + 0x68]
mov edx, esi
mov eax, edi
call fcn.004c7928
push 0xfffffffffffffffa
mov ecx, dword [esp + 0x60]
mov edx, esi
mov eax, edi
call fcn.004c7b00
mov dword [ebx], 0xffffffff
inc ebp
add ebx, 4
cmp ebp, 2
jl 0x4aabe2
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x60], eax
cmp dword [esp + 0x60], 0
jne 0x4aabd9
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
call fcn.004de094
mov edx, dword [esp]
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], ecx
mov eax, dword [esp]
mov edx, dword [esp + 0x78]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
call fcn.004a8c98
mov eax, dword [esp + 4]
add esp, 0x9c
pop ebp
pop edi
pop esi
pop ebx
ret