Function at 0x479640
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x62c140]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x249], 0
push str.QueryvsJoins
lea eax, [ebp - 0x238]
push eax
call fcn.00440b70
add esp, 8
movzx ecx, al
cmp ecx, 1
je 0x4796c7
xor al, al
jmp 0x479c2b
push str.JoinDetails
lea edx, [ebp - 0x234]
push edx
call fcn.00440b70
add esp, 8
movzx eax, al
cmp eax, 1
je 0x4796ea
xor al, al
jmp 0x479c2b
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_JOIN_ID_FROM_QueryvsJoins_WHERE_QUERY_ID___d
lea edx, [ebp - 0x218]
push edx
call fcn.0057f0e8
add esp, 0xc
mov eax, dword [ebp - 0x238]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x260], eax
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00456dc0
add esp, 4
cmp dword [ebp - 0x228], 0
je 0x479c1c
mov edx, dword [ebp - 0x228]
cmp dword [edx + 4], 0
je 0x479c1a
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x244], ecx
cmp dword [ebp - 0x244], 0
je 0x479c1a
mov edx, dword [ebp - 0x244]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x234]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0xc]
push edx
push str.SELECT_BASETABLENAME_FROM_JoinDetails_WHERE_JOIN_ID___d
lea eax, [ebp - 0x218]
push eax
call fcn.0057f0e8
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x479835
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.SELECT_BASETABLEALIAS_FROM_JoinDetails_WHERE_JOIN_ID___d
lea edx, [ebp - 0x218]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
je 0x47989d
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
push eax
push str.SELECT_REFTABLENAME_FROM_JoinDetails_WHERE_JOIN_ID___d
lea ecx, [ebp - 0x218]
push ecx
call fcn.0057f0e8
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
cmp dword [eax + 4], 0
je 0x479905
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
push str.SELECT_REFTABLEALIAS_FROM_JoinDetails_WHERE_JOIN_ID___d
lea eax, [ebp - 0x218]
push eax
call fcn.0057f0e8
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x479970
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.SELECT_BASETABLECOLUMN_FROM_JoinDetails_WHERE_JOIN_ID___d
lea edx, [ebp - 0x218]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
je 0x4799db
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00478410
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x23c]
push edx
push 0
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00478450
add esp, 0x20
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00478540
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push str.SELECT_REFTABLECOLUMN_FROM_JoinDetails_WHERE_JOIN_ID___d
lea edx, [ebp - 0x218]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
je 0x479a96
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004785a0
add esp, 4
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004785e0
add esp, 0x20
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x250]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004786d0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push str.SELECT_JOINTYPE_FROM_JoinDetails_WHERE_JOIN_ID___d
lea edx, [ebp - 0x218]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x258]
push edx
call fcn.00456dc0
add esp, 4
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x479b63
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x230], 0
jmp 0x479b7e
mov ecx, dword [ebp - 0x230]
add ecx, 1
mov dword [ebp - 0x230], ecx
cmp dword [ebp - 0x230], 1
jg 0x479bb8
mov edx, dword [ebp - 0x230]
mov eax, dword [edx*4 + 0x625b38]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.00586760
add esp, 8
test eax, eax
jne 0x479bb6
mov dl, byte [ebp - 0x230]
mov byte [ebp - 0x249], dl
jmp 0x479bb8
jmp 0x479b6f
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x10]
push edx
movzx eax, byte [ebp - 0x249]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00478160
add esp, 0x20
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00478220
add esp, 8
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x244], edx
jmp 0x479783
jmp 0x479c29
push str._nNo_Join_details_n
call fcn.0043d390
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret