Function at 0x180052000
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x378
mov rax, qword [0x1800f68a8]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rcx, qword [rsp + 0x390]
call fcn.180066fd0
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0x388], 0
je 0x180052050
cmp dword [rsp + 0x34], 0
jne 0x18005206e
mov dword [rsp + 0x48], 0xfffffff8
mov rcx, qword [rsp + 0x390]
call fcn.180008970
mov eax, dword [rsp + 0x48]
jmp 0x1800527d5
lea rdx, [0x1800cf55e]
lea rcx, [rsp + 0x2a0]
call fcn.18002ebb0
nop
mov dword [rsp + 0x288], 0
mov dword [rsp + 0x30], 0
movsxd rax, dword [rsp + 0x34]
mov qword [rsp + 0xb0], rax
mov eax, 8
mov rcx, qword [rsp + 0xb0]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800986b8
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
jmp 0x1800520ef
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jge 0x180052121
movsxd rax, dword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x390]
call fcn.180063130
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rdx + rcx*8], rax
jmp 0x1800520e5
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov dword [rsp + rax + 0x300], 0x3ffe0
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x40]
mov qword [rsp + rax + 0x308], rcx
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov ecx, dword [rsp + 0x34]
mov dword [rsp + rax + 0x310], ecx
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov qword [rsp + rax + 0x318], 0
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x398], 1
jne 0x18005240f
movzx eax, byte [rsp + 0x3a8]
test eax, eax
jne 0x1800522a0
mov rax, qword [rsp + 0x388]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x388]
call qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rax, qword [rax + 0xc0]
mov qword [rsp + 0xc0], rax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0xc0]
mov rdx, rax
lea rcx, [rsp + 0x1a8]
call fcn.18002ebb0
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov r8, qword [rsp + 0xd0]
lea rdx, str.SELECT_GROUP_ID_USER_ID_FROM_PROFILE_GROUP_MEMBER_WHERE_USER_ID_IN__
lea rcx, [rsp + 0x188]
call fcn.180003a80
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea r8, str.__AND_GROUP_ID_USER_ID
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x168]
call fcn.180003a10
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x2a0]
call fcn.180008c40
lea rcx, [rsp + 0x168]
call fcn.180008410
nop
lea rcx, [rsp + 0x188]
call fcn.180008410
nop
lea rcx, [rsp + 0x1a8]
call fcn.180008410
jmp 0x18005240a
mov rax, qword [rsp + 0x388]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x388]
call qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rax, qword [rax + 0xc0]
mov qword [rsp + 0xf0], rax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0xf0]
mov rdx, rax
lea rcx, [rsp + 0x208]
call fcn.18002ebb0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov r8, qword [rsp + 0x100]
lea rdx, str.SELECT_G.GROUP_ID_G.USER_ID_FROM_PROFILE_GROUP_MEMBER_G_JOIN_PROFILE_MAIN_M_ON_G.GROUP_IDM.ID_WHERE_G.USER_ID_IN__
lea rcx, [rsp + 0x1e8]
call fcn.180003a80
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea r8, str.__AND_M.IS_ROLE__AND_G.GROUP_ID_G.USER_ID
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x1c8]
call fcn.180003a10
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x2a0]
call fcn.180008c40
lea rcx, [rsp + 0x1c8]
call fcn.180008410
nop
lea rcx, [rsp + 0x1e8]
call fcn.180008410
nop
lea rcx, [rsp + 0x208]
call fcn.180008410
mov dword [rsp + 0x288], 1
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov dword [rsp + rax + 0x300], 0x1f0
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
lea rcx, [rsp + 0x288]
mov qword [rsp + rax + 0x308], rcx
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov dword [rsp + rax + 0x310], 4
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov qword [rsp + rax + 0x318], 0
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x18005254a
cmp dword [rsp + 0x398], 2
jne 0x18005251e
mov rax, qword [rsp + 0x388]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x388]
call qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rax, qword [rax + 0xc0]
mov qword [rsp + 0x120], rax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x120]
mov rdx, rax
lea rcx, [rsp + 0x268]
call fcn.18002ebb0
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov r8, qword [rsp + 0x130]
lea rdx, str.SELECT_USER_ID_GROUP_ID_FROM_PROFILE_GROUP_MEMBER_WHERE_GROUP_ID_IN__
lea rcx, [rsp + 0x248]
call fcn.180003a80
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
lea r8, str.__AND_USER_ID_GROUP_ID
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x228]
call fcn.180003a10
mov qword [rsp + 0x148], rax
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x2a0]
call fcn.180008c40
lea rcx, [rsp + 0x228]
call fcn.180008410
nop
lea rcx, [rsp + 0x248]
call fcn.180008410
nop
lea rcx, [rsp + 0x268]
call fcn.180008410
jmp 0x18005254a
mov dword [rsp + 0x4c], 0xfffffffe
lea rcx, [rsp + 0x2a0]
call fcn.180008410
nop
mov rcx, qword [rsp + 0x390]
call fcn.180008970
mov eax, dword [rsp + 0x4c]
jmp 0x1800527d5
mov qword [rsp + 0x290], 0
mov qword [rsp + 0x298], 0
mov dword [rsp + 0x2c0], 0x244
lea rax, [rsp + 0x298]
mov qword [rsp + 0x2c8], rax
mov dword [rsp + 0x2d0], 8
mov qword [rsp + 0x2d8], 0
mov dword [rsp + 0x2e0], 0x244
lea rax, [rsp + 0x290]
mov qword [rsp + 0x2e8], rax
mov dword [rsp + 0x2f0], 8
mov qword [rsp + 0x2f8], 0
mov rax, qword [rsp + 0x388]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x388]
call qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x158], rax
lea rcx, [rsp + 0x2a0]
call fcn.18000ca70
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x28], 2
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x300]
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x158]
movzx eax, al
test eax, eax
jne 0x1800526bb
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.1800986b0
cmp qword [rsp + 0x80], 0
jne 0x180052679
mov qword [rsp + 0x160], 0
jmp 0x18005268f
mov qword [rsp + 0x40], 0x8123
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x50], 0xfffffff9
lea rcx, [rsp + 0x2a0]
call fcn.180008410
nop
mov rcx, qword [rsp + 0x390]
call fcn.180008970
mov eax, dword [rsp + 0x50]
jmp 0x1800527d5
mov rax, qword [rsp + 0x388]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x388]
call qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x98], rax
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [rsp + 0x98]
movzx eax, al
test eax, eax
je 0x18005273b
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x3a0]
call fcn.180063070
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x298]
mov rcx, qword [rsp + 0xa0]
call fcn.18001ebb0
jmp 0x1800526bb
mov rax, qword [rsp + 0x388]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x388]
call qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x60]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1800986b0
cmp qword [rsp + 0x58], 0
jne 0x180052798
mov qword [rsp + 0xa8], 0
jmp 0x1800527ae
mov qword [rsp + 0x40], 0x8123
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x2a0]
call fcn.180008410
nop
mov rcx, qword [rsp + 0x390]
call fcn.180008970
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180098830
add rsp, 0x378
ret