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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
push esi
mov esi, dword [ebp + 0x3c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
cmp dword [esi + 0x38], 0
push edi
mov dword [esp + 0x18], 0
je 0x5f34c9
movzx eax, byte [ebp + 4]
call fcn.005d2a00
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov edi, ebx
call fcn.005dcad0
add esp, 8
mov dword [esp + 0x6c], 1
jmp 0x5f3b57
cmp dword [esi + 0x48], 0
je 0x5f34e0
movzx eax, byte [ebp + 4]
call fcn.005d2a00
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x5f34b2
mov edi, ebx
call fcn.005e1760
mov cl, byte [esp + 0x38]
mov edi, eax
mov dword [esp + 0x2c], edi
cmp cl, 9
jne 0x5f351c
mov eax, dword [ebp]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push edi
mov edx, 0x2a
call fcn.005d7fb0
add esp, 4
mov dl, 8
mov eax, edi
call fcn.005cfe60
mov cl, dl
mov byte [esp + 0x38], cl
mov eax, dword [ebp]
mov edx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [edx]
je 0x5f355d
test byte [ebp + 6], 0x80
je 0x5f3549
push str.all_VALUES_must_have_the_same_number_of_terms
mov edi, ebx
call fcn.005dcad0
add esp, 4
mov dword [esp + 0x6c], 1
jmp 0x5f3b57
movzx eax, byte [ebp + 4]
call fcn.005d2a00
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
jmp 0x5f34b2
cmp dword [ebp + 0x38], 0
je 0x5f357b
mov ecx, dword [esp + 0x70]
push ecx
push ebx
mov eax, ebp
call fcn.005ee720
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
movzx eax, byte [ebp + 4]
sub eax, 0x70
je 0x5f3866
sub eax, 1
je 0x5f3787
sub eax, 1
je 0x5f3866
mov ecx, dword [ebx + 0x48]
lea edx, [ecx + 2]
xor eax, eax
mov dword [ebx + 0x48], edx
push edi
lea edx, [eax + 0x2a]
mov dword [esp + 0x18], ecx
call fcn.005d7fb0
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x44]
or word [eax + 6], 8
push 1
lea eax, [esp + 0x50]
call fcn.005d2900
mov eax, dword [ebx + 0x1e8]
lea ecx, [esp + 0x50]
push ecx
push esi
push ebx
mov dword [esp + 0x38], eax
call fcn.0060d310
add esp, 0x14
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x5f3b57
mov ecx, dword [esp + 0x14]
push edi
inc ecx
lea edx, [eax + 0x2a]
call fcn.005d7fb0
mov edx, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x14], eax
xor eax, eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x1e8]
push ebp
push ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.0060d310
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x3c], esi
fld qword [esi + 0x20]
fcomp qword [ebp + 0x20]
mov dword [esp + 0x7c], eax
add esp, 0x10
mov dword [esp + 0x18], ecx
fnstsw ax
test ah, 5
jp 0x5f365e
fld qword [esi + 0x20]
fstp qword [ebp + 0x20]
mov edx, dword [ebp + 0x48]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.005d9160
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add esp, 8
cmp byte [esp + 0x38], 5
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], edx
jne 0x5f36a7
mov eax, dword [ebp + 0x3c]
mov ecx, ebp
test eax, eax
je 0x5f3699
lea ecx, [ecx]
mov ecx, eax
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x5f3690
mov eax, dword [ecx]
push eax
push 0
push ebx
call fcn.005e76c0
add esp, 0xc
mov eax, edi
call fcn.005d7fd0
mov esi, eax
mov eax, edi
mov dword [esp + 0x28], esi
call fcn.005d7fd0
mov dword [esp + 0x1c], eax
push esi
push ebp
mov eax, ebx
call fcn.005e1790
mov ecx, dword [esp + 0x1c]
push edi
mov eax, esi
mov edx, 0x48
call fcn.005d7fb0
mov eax, ebx
call fcn.005d1720
mov ecx, dword [esp + 0x20]
mov esi, eax
push edi
mov edx, 0x3f
mov dword [esp + 0x40], esi
call fcn.005d7fb0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
push 0
push 0x33
mov eax, esi
inc edx
call fcn.005de5e0
mov edx, ebx
call fcn.005d1740
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov eax, dword [ebp]
mov esi, dword [esp + 0x2c]
push ecx
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push edx
push esi
push eax
push ebp
push ebx
call fcn.005ee070
mov edx, dword [esp + 0x5c]
add esp, 0x40
mov ecx, edi
call fcn.005cfdf0
mov eax, dword [esp + 0x34]
push edi
mov ecx, esi
mov edx, 0x5f
call fcn.005d7fb0
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.005cfdf0
xor eax, eax
push edi
lea ecx, [esi + 1]
lea edx, [eax + 0x2d]
call fcn.005d7fb0
xor eax, eax
push edi
mov ecx, esi
lea edx, [eax + 0x2d]
call fcn.005d7fb0
add esp, 0xc
jmp 0x5f3a3a
mov eax, dword [ebp + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp + 0x4c]
lea eax, [esp + 0x38]
push eax
mov dword [esi + 0x4c], ecx
mov edx, dword [ebx + 0x1e8]
push esi
push ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], edx
call fcn.0060d310
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x6c], eax
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], ecx
cmp eax, ecx
jne 0x5f3b57
mov dword [ebp + 0x3c], ecx
mov edx, dword [esi + 8]
mov dword [ebp + 8], edx
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, edx
cmp eax, ecx
je 0x5f37ef
push edi
mov ecx, 0x7a
call fcn.005d7f90
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [ebx + 0x1e8]
lea edx, [esp + 0x38]
push edx
push ebp
push ebx
mov dword [esp + 0x2c], ecx
call fcn.0060d310
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp + 0x3c], esi
fld qword [esi + 0x20]
fadd qword [ebp + 0x20]
add esp, 0xc
mov dword [esp + 0x18], eax
fst qword [ebp + 0x20]
mov esi, dword [esi + 0x48]
test esi, esi
je 0x5f384c
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.005d11b0
add esp, 8
test eax, eax
je 0x5f384c
fild dword [esp + 0x34]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x5f384c
fstp qword [ebp + 0x20]
jmp 0x5f384e
fstp st(0)
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5f3a3a
mov ecx, edi
call fcn.005cfe80
jmp 0x5f3a3a
cmp cl, 1
jne 0x5f3881
cmp dword [ebp + 0x48], 0
jne 0x5f3881
cmp dword [ebp + 0x4c], 0
jne 0x5f3881
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
jmp 0x5f38a7
mov ecx, dword [ebx + 0x48]
lea eax, [ecx + 1]
mov dword [ebx + 0x48], eax
xor eax, eax
push edi
lea edx, [eax + 0x2a]
mov dword [esp + 0x18], ecx
call fcn.005d7fb0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x44]
add esp, 4
or word [eax + 6], 8
mov edx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x5c]
call fcn.005d2900
mov ecx, dword [ebx + 0x1e8]
mov edx, eax
push edx
push esi
push ebx
mov dword [esp + 0x34], ecx
call fcn.0060d310
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x6c], eax
cmp eax, ecx
jne 0x5f3b57
mov edx, dword [ebp + 0x48]
cmp byte [ebp + 4], 0x72
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], ecx
sete al
lea ecx, [esp + 0x58]
inc al
push ecx
mov byte [esp + 0x5c], al
mov eax, dword [ebx + 0x1e8]
push ebp
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
call fcn.0060d310
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.005d9430
mov ecx, dword [ebp + 0x3c]
add esp, 0x14
cmp byte [ebp + 4], 0x70
mov dword [esp + 0x18], ecx
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x38], 0
jne 0x5f394a
fld qword [esi + 0x20]
fadd qword [ebp + 0x20]
fstp qword [ebp + 0x20]
mov edx, dword [ebp + 0x48]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.005d9160
mov edx, dword [esp + 0x38]
mov al, byte [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x4c], edx
xor edx, edx
add esp, 8
mov dword [ebp + 0x48], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
cmp al, 1
je 0x5f3a3a
cmp al, 5
jne 0x5f39a6
mov eax, dword [ebp + 0x3c]
mov ecx, ebp
cmp eax, edx
je 0x5f3999
lea ebx, [ebx]
mov ecx, eax
mov eax, dword [ecx + 0x3c]
cmp eax, edx
jne 0x5f3990
mov eax, dword [ecx]
push eax
push edx
push ebx
call fcn.005e76c0
add esp, 0xc
mov eax, edi
call fcn.005d7fd0
mov esi, eax
mov eax, edi
call fcn.005d7fd0
mov dword [esp + 0x28], eax
push esi
push ebp
mov eax, ebx
call fcn.005e1790
mov ecx, dword [esp + 0x1c]
push edi
mov eax, esi
mov edx, 0x48
call fcn.005d7fb0
mov eax, edi
call fcn.005cfe20
mov ecx, dword [esp + 0x34]
push esi
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push 0
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.005ee070
mov edx, dword [esp + 0x5c]
mov ecx, edi
call fcn.005cfdf0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
push edi
mov edx, 0x5f
call fcn.005d7fb0
mov edx, esi
mov ecx, edi
call fcn.005cfdf0
mov ecx, dword [esp + 0x4c]
xor eax, eax
push edi
lea edx, [eax + 0x2d]
call fcn.005d7fb0
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.005e11d0
add esp, 0xc
test byte [ebp + 6], 8
je 0x5f3b57
mov edx, dword [ebp]
mov esi, dword [edx]
mov eax, dword [esp + 0x10]
lea edi, [esi + esi*4 + 0x10]
call fcn.005dba50
mov dword [esp + 0x20], eax
test eax, eax
jne 0x5f3a8b
mov dword [esp + 0x6c], 7
jmp 0x5f3b57
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0xc]
mov dl, byte [ecx + 0x4d]
xor edi, edi
lea ecx, [eax + 0xc]
mov byte [eax + 4], dl
mov word [eax + 6], si
mov dword [esp + 0x24], ecx
test esi, esi
jle 0x5f3ade
lea esp, [esp]
push edi
push ebp
push ebx
call fcn.005ee6d0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [ecx], eax
test eax, eax
jne 0x5f3ace
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
inc edi
add ecx, 4
cmp edi, esi
mov dword [esp + 0x24], ecx
jl 0x5f3ab0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov dword [esp + 0x24], ebp
lea esp, [esp]
mov ebx, dword [esp + 0x24]
xor ebp, ebp
add ebx, 0x10
lea esp, [esp]
mov edi, dword [ebx]
test edi, edi
jl 0x5f3b3b
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov eax, edi
call fcn.005cfe40
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, 0xfffffffa
mov eax, edi
call fcn.005d8230
mov dword [ebx], 0xffffffff
inc ebp
add esp, 8
add ebx, 4
cmp ebp, 2
jl 0x5f3b00
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x5f3af0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
call fcn.005ca970
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.005d2920
mov eax, dword [esp + 0x74]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret