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

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov edi, eax
mov eax, dword [ebp]
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0x18], ecx
je 0x1003624e
movzx eax, byte [edi + 4]
call fcn.100345a0
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ebp
call fcn.1001a200
add esp, 0xc
mov dword [esp + 0x5c], 1
jmp 0x100367e3
cmp dword [ebx + 0x28], ecx
je 0x10036264
movzx eax, byte [edi + 4]
call fcn.100345a0
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x10036238
push ebp
call fcn.10034880
mov cl, byte [esp + 0x2c]
add esp, 4
mov esi, eax
cmp cl, 9
jne 0x10036293
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [esp + 0x2c]
push edx
push eax
push 0x76
push esi
call fcn.10011ff0
mov cl, 8
add esp, 0x10
mov byte [esp + 0x28], cl
mov eax, dword [edi]
mov edx, dword [ebx]
mov eax, dword [eax]
cmp eax, dword [edx]
je 0x100362ae
movzx eax, byte [edi + 4]
call fcn.100345a0
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
jmp 0x10036238
cmp dword [edi + 0x18], 0
je 0x100362ca
mov ecx, dword [esp + 0x60]
push ecx
push ebp
call fcn.10034cc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
movzx eax, byte [edi + 4]
add eax, 0xffffff90
cmp eax, 3
ja case.default.0x100362da
jmp dword [eax*4 + 0x10036814]
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0x28]
push ecx
mov dword [ebx + 0x28], edx
mov eax, dword [edi + 0x2c]
push ebx
push ebp
mov dword [esp + 0x28], 0
mov dword [ebx + 0x2c], eax
call fcn.10036f10
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x5c], eax
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
cmp eax, ecx
jne 0x100367e3
mov dword [edi + 0x1c], ecx
mov edx, dword [ebx + 0x30]
mov dword [edi + 0x30], edx
mov eax, dword [ebx + 0x34]
mov dword [edi + 0x34], eax
mov eax, edx
cmp eax, ecx
je 0x1003633d
push eax
push 0x7e
push esi
call fcn.10011fd0
add esp, 0xc
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push ecx
push edi
push ebp
call fcn.10036f10
mov edx, dword [edi + 0x1c]
add esp, 0xc
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], edx
mov dword [edi + 0x1c], ebx
test eax, eax
jne 0x100367e3
mov eax, dword [esp + 0x1c]
test eax, eax
je case.default.0x100362da
push eax
push esi
call fcn.100123a0
add esp, 8
jmp case.default.0x100362da
cmp cl, 1
jne 0x10036394
cmp dword [edi + 0x28], 0
jne 0x10036394
cmp dword [edi + 0x2c], 0
jne 0x10036394
mov ebx, dword [esp + 0x2c]
jmp 0x100363b6
mov ebx, dword [ebp + 0x44]
push 0
push ebx
lea eax, [ebx + 1]
push 0x76
push esi
mov dword [ebp + 0x44], eax
call fcn.10011ff0
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x24]
add esp, 0x10
or word [eax + 6], 8
push ebx
lea ecx, [esp + 0x3c]
push 1
push ecx
call fcn.100332f0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x44]
push edx
push eax
push ebp
call fcn.10036f10
xor ecx, ecx
add esp, 0x18
mov dword [esp + 0x5c], eax
cmp eax, ecx
jne 0x100367e3
cmp byte [edi + 4], 0x72
mov edx, dword [edi + 0x28]
sete al
inc al
mov byte [esp + 0x38], al
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0x2c]
push edi
push ebp
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [edi + 0x2c], ecx
call fcn.10036f10
mov ecx, dword [edi + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x70], eax
call fcn.100386b0
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
push edx
push eax
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], 0
call fcn.100399a0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x2c], edx
xor edx, edx
add esp, 0x1c
mov dword [edi + 0x28], ecx
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], edx
cmp dword [esp + 0x5c], edx
jne 0x100367e3
mov al, byte [esp + 0x28]
cmp al, 1
jne 0x1003647e
cmp ebx, dword [esp + 0x2c]
je case.default.0x100362da
cmp al, 5
jne 0x100364a6
mov eax, dword [edi + 0x1c]
mov ecx, edi
cmp eax, edx
je 0x10036499
jmp 0x10036490
mov ecx, eax
mov eax, dword [ecx + 0x1c]
cmp eax, edx
jne 0x10036490
mov eax, dword [ecx]
push eax
push edx
push ebp
call fcn.10034400
add esp, 0xc
push esi
call fcn.10012010
push esi
mov dword [esp + 0x1c], eax
call fcn.10012010
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x28], eax
push edi
mov eax, ebp
call fcn.100348c0
mov edx, dword [esp + 0x24]
push edx
push ebx
push 0x7a
push esi
call fcn.10011ff0
push esi
call int.10012210
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x54]
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x58], eax
mov eax, dword [edi]
mov edx, dword [eax]
push 0
push edx
push ebx
push eax
push edi
mov eax, ebp
call fcn.10033ae0
mov eax, dword [esp + 0x64]
add esp, 0x48
push eax
push esi
call fcn.10012070
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push 0x6a
push esi
call fcn.10011ff0
mov edx, dword [esp + 0x2c]
push edx
push esi
call fcn.10012070
push 0
push ebx
push 0x21
push esi
call fcn.10011ff0
add esp, 0x30
jmp case.default.0x100362da
mov ebx, dword [ebp + 0x44]
push 0
push ebx
lea eax, [ebx + 2]
push 0x76
push esi
mov dword [ebp + 0x44], eax
call fcn.10011ff0
push ebx
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x24]
or word [eax + 6], 8
lea ecx, [esp + 0x5c]
push 1
push ecx
call fcn.100332f0
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x64]
push edx
push eax
push ebp
call fcn.10036f10
add esp, 0x28
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x100367e3
push eax
lea eax, [ebx + 1]
push eax
push 0x76
push esi
call fcn.10011ff0
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov dword [edi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
lea eax, [ebx + 1]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
push edi
push ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
call fcn.10036f10
mov ecx, dword [edi + 0x1c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov dword [edi + 0x1c], edx
call fcn.100399a0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp dword [esp + 0x5c], 0
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], eax
jne 0x100367e3
cmp byte [esp + 0x28], 5
jne 0x10036627
mov eax, dword [edi + 0x1c]
mov ecx, edi
test eax, eax
je 0x10036619
mov edi, edi
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x10036610
mov ecx, dword [ecx]
push ecx
push 0
push ebp
call fcn.10034400
add esp, 0xc
push esi
call fcn.10012010
push esi
mov dword [esp + 0x1c], eax
call fcn.10012010
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x28], eax
push edi
mov eax, ebp
call fcn.100348c0
mov eax, dword [esp + 0x24]
push eax
push ebx
push 0x7a
push esi
call fcn.10011ff0
push ebp
call fcn.10039720
push eax
push ebx
push 8
push esi
mov dword [esp + 0x54], eax
call fcn.10011ff0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
mov dword [esp + 0x60], eax
lea eax, [ebx + 1]
push eax
push 0x24
push esi
call int.10011f50
mov eax, dword [esp + 0x68]
add esp, 0x48
push eax
push ebp
call fcn.10039740
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov eax, dword [edi]
push ecx
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push 0
push edx
push ebx
push eax
push edi
mov eax, ebp
call fcn.10033ae0
mov eax, dword [esp + 0x48]
push eax
push esi
call fcn.10012070
mov ecx, dword [esp + 0x58]
push ecx
push ebx
push 0x6a
push esi
call fcn.10011ff0
mov edx, dword [esp + 0x58]
add esp, 0x44
push edx
push esi
call fcn.10012070
push 0
lea eax, [ebx + 1]
push eax
push 0x21
push esi
call fcn.10011ff0
push 0
push ebx
push 0x21
push esi
call fcn.10011ff0
add esp, 0x28
test byte [edi + 6], 8
je 0x100367e3
mov eax, dword [edi]
mov ebx, dword [eax]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + ebx*4 + 0x10]
push ecx
push edx
mov dword [esp + 0x24], ebx
call fcn.1000f610
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10036730
mov dword [esp + 0x5c], 7
jmp 0x100367e3
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0x14]
mov dl, byte [ecx + 0x39]
mov word [eax + 6], bx
mov byte [eax + 4], dl
xor ebx, ebx
add eax, 0xc
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
jle 0x1003677f
push ebx
push edi
push ebp
call fcn.100349e0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [ecx], eax
test eax, eax
jne 0x10036771
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x2c]
mov dword [ecx], edx
inc ebx
add ecx, 4
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
jl 0x10036753
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
add edi, 0x38
lea esp, [esp]
mov ebp, dword [edi]
test ebp, ebp
jl 0x100367c2
mov eax, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.10012320
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffffa
push ecx
push ebp
push esi
call fcn.10013ed0
mov dword [edi], 0xffffffff
inc ebx
add esp, 0x1c
add edi, 4
cmp ebx, 2
jl 0x10036790
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10036783
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.1000eef0
add esp, 8
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
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.100333f0
mov eax, dword [esp + 0x64]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret