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

Disassembly:
sub esp, 0x58
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
push ebx
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 4]
mov ebx, eax
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
cmp dword [eax + 0x18], 0
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
je 0x45410a
movzx eax, byte [ebp + 4]
call fcn.004353a0
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov edi, ebx
call fcn.0043e7b0
mov dword [esp + 0x74], 1
jmp 0x454789
cmp dword [eax + 0x28], 0
je 0x454133
movzx eax, byte [ebp + 4]
call fcn.004353a0
push eax
push str.LIMIT_clause_should_come_after__s_not_before
mov edi, ebx
call fcn.0043e7b0
mov dword [esp + 0x74], 1
jmp 0x454789
mov edi, ebx
call fcn.004435d0
mov cl, byte [esp + 0x38]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp cl, 9
jne 0x45416f
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, dword [esp + 0x3c]
push esi
mov edx, 0x2a
call fcn.0043a030
add esp, 4
mov dl, 0x10
mov eax, esi
call fcn.00432b20
mov cl, 8
mov byte [esp + 0x38], cl
mov edi, dword [esp + 0x18]
mov edx, dword [ebp]
mov eax, dword [edi]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x4541a1
movzx eax, byte [ebp + 4]
call fcn.004353a0
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
mov edi, ebx
call fcn.0043e7b0
mov dword [esp + 0x74], 1
jmp 0x454789
cmp dword [ebp + 0x18], 0
je 0x4541bf
mov eax, dword [esp + 0x70]
push eax
push ebx
mov eax, ebp
call fcn.0044f840
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
movzx eax, byte [ebp + 4]
sub eax, 0x70
je 0x4544ad
sub eax, 1
je 0x4543ce
sub eax, 1
je 0x4544ad
mov edi, dword [ebx + 0x44]
lea ecx, [edi + 2]
xor eax, eax
mov dword [ebx + 0x44], ecx
push esi
mov ecx, edi
lea edx, [eax + 0x2a]
mov dword [esp + 0x34], edi
call fcn.0043a030
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
or word [eax + 6], 8
push 1
mov edx, edi
lea eax, [esp + 0x50]
call fcn.00435290
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x22c]
push eax
push ecx
push ebx
mov dword [esp + 0x38], edx
call fcn.0046da00
add esp, 0x14
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x45478c
push esi
lea ecx, [edi + 1]
lea edx, [eax + 0x2a]
call fcn.0043a030
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x3c], eax
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
lea eax, [edi + 1]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x22c]
push ebp
push ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
call fcn.0046da00
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x1c], ecx
fld qword [ecx + 0x48]
fcomp qword [ebp + 0x48]
mov dword [esp + 0x7c], eax
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x4542a2
fld qword [ecx + 0x48]
fstp qword [ebp + 0x48]
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0043af30
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
add esp, 8
cmp byte [esp + 0x38], 5
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], edx
jne 0x4542e8
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
test eax, eax
je 0x4542da
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4542d1
mov eax, dword [ecx]
push eax
push 0
push ebx
call fcn.00449420
add esp, 0xc
mov eax, esi
call fcn.0043a050
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.0043a050
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x2c], eax
push ebp
mov eax, ebx
call fcn.00443600
mov eax, dword [esp + 0x1c]
push esi
mov ecx, edi
mov edx, 0x48
call fcn.0043a030
mov eax, ebx
call fcn.00434240
push esi
mov ecx, edi
mov edx, 0x3f
mov dword [esp + 0x28], eax
call fcn.0043a030
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
push 0
lea edx, [edi + 1]
push 0x33
mov edi, esi
call fcn.00440140
mov esi, dword [esp + 0x30]
mov edx, ebx
call fcn.00434260
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
mov eax, dword [ebp]
mov edi, dword [esp + 0x48]
push edx
mov edx, dword [eax]
push esi
lea ecx, [esp + 0x58]
push ecx
push 0xffffffffffffffff
push 0
push edx
push edi
push eax
push ebp
push ebx
call fcn.00442c80
mov edx, esi
mov esi, dword [esp + 0x6c]
add esp, 0x40
mov ecx, esi
call fcn.00432ab0
mov eax, dword [esp + 0x34]
push esi
mov ecx, edi
mov edx, 0x5f
call fcn.0043a030
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.00432ab0
xor eax, eax
push esi
lea ecx, [edi + 1]
lea edx, [eax + 0x2d]
call fcn.0043a030
xor eax, eax
push esi
mov ecx, edi
lea edx, [eax + 0x2d]
call fcn.0043a030
add esp, 0xc
jmp 0x45467a
mov eax, dword [ebp + 0x28]
mov dword [edi + 0x28], eax
mov ecx, dword [ebp + 0x2c]
lea eax, [esp + 0x38]
push eax
mov dword [edi + 0x2c], ecx
mov edx, dword [ebx + 0x22c]
push edi
push ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], edx
call fcn.0046da00
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x6c], eax
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
cmp eax, ecx
jne 0x45478c
mov dword [ebp + 0x1c], ecx
mov edx, dword [edi + 0x30]
mov dword [ebp + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [ebp + 0x34], eax
mov eax, edx
cmp eax, ecx
je 0x454436
push esi
mov ecx, 0x7a
call fcn.0043a010
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [ebx + 0x22c]
lea edx, [esp + 0x38]
push edx
push ebp
push ebx
mov dword [esp + 0x2c], ecx
call fcn.0046da00
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], edi
fld qword [edi + 0x48]
fadd qword [ebp + 0x48]
add esp, 0xc
mov dword [esp + 0x1c], eax
fst qword [ebp + 0x48]
mov edi, dword [edi + 0x28]
test edi, edi
je 0x454493
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.00433da0
add esp, 8
test eax, eax
je 0x454493
fild dword [esp + 0x34]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x454493
fstp qword [ebp + 0x48]
jmp 0x454495
fstp st(0)
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45467a
mov ecx, esi
call fcn.00432b40
jmp 0x45467a
cmp cl, 1
jne 0x4544c8
cmp dword [ebp + 0x28], 0
jne 0x4544c8
cmp dword [ebp + 0x2c], 0
jne 0x4544c8
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
jmp 0x4544ee
mov ecx, dword [ebx + 0x44]
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
xor eax, eax
push esi
lea edx, [eax + 0x2a]
mov dword [esp + 0x18], ecx
call fcn.0043a030
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
add esp, 4
or word [eax + 6], 8
mov edx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x5c]
call fcn.00435290
mov ecx, dword [ebx + 0x22c]
mov edx, eax
push edx
push edi
push ebx
mov dword [esp + 0x34], ecx
call fcn.0046da00
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x6c], eax
cmp eax, ecx
jne 0x45478c
mov edx, dword [ebp + 0x28]
cmp byte [ebp + 4], 0x72
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
sete al
lea ecx, [esp + 0x58]
inc al
push ecx
mov byte [esp + 0x5c], al
mov eax, dword [ebx + 0x22c]
push ebp
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
call fcn.0046da00
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x1c]
push edx
mov dword [esp + 0x7c], eax
call fcn.00433c40
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
xor edi, edi
add esp, 0x10
cmp byte [ebp + 4], 0x70
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x18], edi
jne 0x454592
fld qword [eax + 0x48]
fadd qword [ebp + 0x48]
fstp qword [ebp + 0x48]
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0043af30
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x28], eax
mov al, byte [esp + 0x40]
add esp, 8
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x34], edi
cmp al, 1
je 0x45467a
cmp al, 5
jne 0x4545e6
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
cmp eax, edi
je 0x4545d9
mov ecx, eax
mov eax, dword [ecx + 0x1c]
cmp eax, edi
jne 0x4545d0
mov edx, dword [ecx]
push edx
push edi
push ebx
call fcn.00449420
add esp, 0xc
mov eax, esi
call fcn.0043a050
mov edi, eax
mov eax, esi
call fcn.0043a050
mov dword [esp + 0x28], eax
push edi
push ebp
mov eax, ebx
call fcn.00443600
mov ecx, dword [esp + 0x1c]
push esi
mov eax, edi
mov edx, 0x48
call fcn.0043a030
mov eax, esi
call fcn.00432ae0
mov ecx, dword [esp + 0x34]
push edi
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
mov dword [esp + 0x50], eax
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0
push ecx
push edx
push eax
push ebp
push ebx
call fcn.00442c80
mov edx, dword [esp + 0x5c]
mov ecx, esi
call fcn.00432ab0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
push esi
mov edx, 0x5f
call fcn.0043a030
mov edx, edi
mov ecx, esi
call fcn.00432ab0
mov ecx, dword [esp + 0x4c]
xor eax, eax
push esi
lea edx, [eax + 0x2d]
call fcn.0043a030
add esp, 0x3c
mov al, byte [ebp + 4]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp al, 0x71
setne cl
movzx eax, al
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
call fcn.00443060
add esp, 0xc
test byte [ebp + 6], 8
je 0x45478c
mov edx, dword [ebp]
mov esi, dword [edx]
mov eax, dword [esp + 0x10]
lea edi, [esi + esi*4 + 0x10]
mov dword [esp + 0x24], esi
call fcn.0043d770
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4546cf
mov dword [esp + 0x6c], 7
jmp 0x45478c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0xc]
mov dl, byte [ecx + 0x4d]
xor edi, edi
cmp dword [esp + 0x24], edi
mov word [eax + 6], si
mov byte [eax + 4], dl
lea esi, [eax + 0xc]
jle 0x454714
mov edi, edi
push edi
push ebp
push ebx
call fcn.0044f7f0
add esp, 0xc
mov dword [esi], eax
test eax, eax
jne 0x45470a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x2c]
mov dword [esi], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x24]
jl 0x4546f0
mov dword [esp + 0x20], ebp
jmp 0x454720
mov ebx, dword [esp + 0x20]
xor ebp, ebp
add ebx, 0x38
lea esp, [esp]
mov edi, dword [ebx]
test edi, edi
jl 0x45476b
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, edi
mov ecx, esi
call fcn.00432b00
mov edx, dword [esp + 0x28]
push edx
push esi
mov ecx, 0xfffffffa
mov eax, edi
call fcn.0043a2f0
mov dword [ebx], 0xffffffff
inc ebp
add esp, 8
add ebx, 4
cmp ebp, 2
jl 0x454730
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x454720
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0042d860
add esp, 8
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.004352b0
mov eax, dword [esp + 0x74]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret