Function at 0x479370
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x62c140]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x210], 0
push str.QueryvsTables
lea eax, [ebp - 0x218]
push eax
call fcn.00440b70
add esp, 8
movzx ecx, al
cmp ecx, 1
je 0x4793ba
xor al, al
jmp 0x479623
push str.TableDetails
lea edx, [ebp - 0x214]
push edx
call fcn.00440b70
add esp, 8
movzx eax, al
cmp eax, 1
je 0x4793dd
xor al, al
jmp 0x479623
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_TABLE_ID_FROM_QueryvsTables_WHERE_QUERY_ID___d
lea edx, [ebp - 0x208]
push edx
call fcn.0057f0e8
add esp, 0xc
mov eax, dword [ebp - 0x218]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x230], eax
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x230]
push eax
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00456dc0
add esp, 4
cmp dword [ebp - 0x20c], 0
je 0x479614
mov edx, dword [ebp - 0x20c]
cmp dword [edx + 4], 0
je 0x479612
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x21c], ecx
cmp dword [ebp - 0x21c], 0
je 0x479612
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x214]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x228]
push edx
push str.SELECT_TABLENAME_FROM_TableDetails_WHERE_TABLE_ID___d
lea eax, [ebp - 0x208]
push eax
call fcn.0057f0e8
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x230]
push edx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x479537
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 0x479537
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x228]
push ecx
push str.SELECT_TABLEALIAS_FROM_TableDetails_WHERE_TABLE_ID___d
lea edx, [ebp - 0x208]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x224]
push edx
call fcn.00456dc0
add esp, 4
cmp dword [ebp - 0x220], 0
je 0x4795d1
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 0x4795d1
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
push str._nTable_Alias___s
call fcn.0057f752
add esp, 8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00478340
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004783b0
add esp, 8
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x21c], edx
jmp 0x479476
jmp 0x479621
push str._nNo_Tables_to_be_selected_n
call fcn.0043d390
add esp, 4
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret