Function at 0x458d70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x230], 0
push 0x10
push 0
push 0x10
mov eax, dword [ebp + 0x10]
push eax
call fcn.004519f0
add esp, 8
push eax
call fcn.00492ac0
add esp, 0xc
mov dword [ebp - 0x224], eax
push 0
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00439c20
add esp, 8
push 0x10
push 0
push 0x10
mov edx, dword [ebp + 0x10]
push edx
call fcn.004519f0
add esp, 8
push eax
call fcn.00492ac0
add esp, 0xc
mov dword [ebp - 0x238], eax
push str.QueryvsGB
lea eax, [ebp - 0x214]
push eax
call fcn.0042bfe0
add esp, 8
movzx ecx, al
cmp ecx, 1
je 0x458e0d
xor al, al
jmp 0x45909f
push str.GroupByDetails
lea edx, [ebp - 0x210]
push edx
call fcn.0042bfe0
add esp, 8
movzx eax, al
cmp eax, 1
je 0x458e30
xor al, al
jmp 0x45909f
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_GB_ID_FROM_QueryvsGB_WHERE_QUERY_ID___d
lea edx, [ebp - 0x208]
push edx
call fcn.00492848
add esp, 0xc
mov eax, dword [ebp - 0x214]
push eax
call fcn.004373c0
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00437ce0
add esp, 4
mov dword [ebp - 0x240], eax
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x240]
push eax
call fcn.004391f0
add esp, 8
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00438210
add esp, 4
cmp dword [ebp - 0x20c], 0
je 0x459090
mov edx, dword [ebp - 0x20c]
cmp dword [edx + 4], 0
je 0x45908e
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x21c], ecx
cmp dword [ebp - 0x21c], 0
je 0x459060
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x210]
push eax
call fcn.004373c0
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00437ce0
add esp, 4
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x234]
push edx
push str.SELECT_TABLENAME_FROM_GroupByDetails_WHERE_GB_ID___d
lea eax, [ebp - 0x208]
push eax
call fcn.00492848
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call fcn.004391f0
add esp, 8
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x458f81
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x234]
push ecx
push str.SELECT_COLUMNNAME_FROM_GroupByDetails_WHERE_GB_ID___d
lea edx, [ebp - 0x208]
push edx
call fcn.00492848
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.004391f0
add esp, 8
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x228]
push edx
call fcn.00438210
add esp, 4
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x458ffe
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x230]
push edx
push 0
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00456e80
add esp, 0x20
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x218]
mov dword [ecx], edx
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00439de0
add esp, 8
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x21c], eax
jmp 0x458ec9
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x224]
push edx
call fcn.004573b0
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00457400
add esp, 8
jmp 0x45909d
push str._nNo_GroupBy_details_n
call fcn.00423960
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret