Function at 0x478d70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x62c140]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x23d], 0xe
mov dword [ebp - 0x22c], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x218], 0
push str.QueryvsColumns
lea eax, [ebp - 0x228]
push eax
call fcn.00440b70
add esp, 8
movzx ecx, al
cmp ecx, 1
je 0x478df7
xor al, al
jmp 0x479358
push str.ColumnDetails
lea edx, [ebp - 0x224]
push edx
call fcn.00440b70
add esp, 8
movzx eax, al
cmp eax, 1
je 0x478e1a
xor al, al
jmp 0x479358
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_COLUMN_ID_FROM_QueryvsColumns_WHERE_QUERY_ID___d
lea edx, [ebp - 0x210]
push edx
call fcn.0057f0e8
add esp, 0xc
mov eax, dword [ebp - 0x228]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x264], eax
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x264]
push eax
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00456dc0
add esp, 4
cmp dword [ebp - 0x214], 0
je 0x479349
mov edx, dword [ebp - 0x214]
cmp dword [edx + 4], 0
je 0x479347
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x234], ecx
cmp dword [ebp - 0x234], 0
je 0x479347
mov edx, dword [ebp - 0x234]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x224]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x254]
push edx
push str.SELECT_COLUMNNAME_FROM_ColumnDetails_WHERE_COLUMN_ID___d
lea eax, [ebp - 0x210]
push eax
call fcn.0057f0e8
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x478f86
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x478f86
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x254]
push ecx
push str.SELECT_COLUMNALIAS_FROM_ColumnDetails_WHERE_COLUMN_ID___d
lea edx, [ebp - 0x210]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x47900b
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x238]
cmp dword [edx + 4], 0
je 0x479009
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x479009
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x248], eax
jmp 0x479015
mov dword [ebp - 0x248], 0
mov ecx, dword [ebp - 0x254]
push ecx
push str.SELECT_TABLENAME_FROM_ColumnDetails_WHERE_COLUMN_ID___d
lea edx, [ebp - 0x210]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x479098
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
je 0x47908e
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x25c], edx
jmp 0x479098
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x254]
push eax
push str.SELECT_TABLEALIAS_FROM_ColumnDetails_WHERE_COLUMN_ID___d
lea ecx, [ebp - 0x210]
push ecx
call fcn.0057f0e8
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x264]
push eax
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x47911b
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
cmp dword [eax + 4], 0
je 0x479111
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x220], ecx
jmp 0x47911b
mov dword [ebp - 0x220], 0
mov edx, dword [ebp - 0x254]
push edx
push str.SELECT_FUNCTIONNAME_FROM_ColumnDetails_WHERE_COLUMN_ID___d
lea eax, [ebp - 0x210]
push eax
call fcn.0057f0e8
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x244]
push eax
call fcn.00456dc0
add esp, 4
cmp dword [ebp - 0x238], 0
je 0x4791f9
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
cmp dword [eax + 4], 0
je 0x4791f7
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x218], 0
jmp 0x4791c0
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
cmp dword [ebp - 0x218], 6
jg 0x4791f7
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax*4 + 0x625af4]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call fcn.00586760
add esp, 8
test eax, eax
jne 0x4791f5
mov al, byte [ebp - 0x218]
mov byte [ebp - 5], al
jmp 0x4791f7
jmp 0x4791b1
jmp 0x4791fd
mov byte [ebp - 5], 0
push 0
push 0x634b20
call fcn.0044edd0
add esp, 8
mov dword [ebp - 0x258], eax
jmp 0x479223
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x258], edx
cmp dword [ebp - 0x258], 0
je 0x4792de
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
mov dword [ebp - 0x250], ecx
cmp dword [ebp - 0x25c], 0
je 0x4792d9
mov edx, dword [ebp - 0x250]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.00586760
add esp, 8
test eax, eax
jne 0x4792d9
mov edx, dword [ebp - 0x250]
mov eax, dword [edx + 8]
mov dword [ebp - 0x260], eax
push 0
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.0044edd0
add esp, 8
mov dword [ebp - 0x23c], eax
jmp 0x47929e
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x4792d9
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call fcn.00586760
add esp, 8
test eax, eax
jne 0x4792d7
mov eax, dword [ebp - 4]
mov cl, byte [eax + 4]
mov byte [ebp - 0x23d], cl
jmp 0x47928f
jmp 0x479214
mov edx, dword [ebp + 0x10]
push edx
movzx eax, byte [ebp - 5]
push eax
movzx ecx, byte [ebp - 0x23d]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call fcn.00477d50
add esp, 0x20
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00477e50
add esp, 8
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x234], ecx
jmp 0x478ec5
jmp 0x479356
push str._nNo_Columns_to_be_selected._n
call fcn.0043d390
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret