Function at 0x458770
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5142b0]
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.0042bfe0
add esp, 8
movzx ecx, al
cmp ecx, 1
je 0x4587f7
xor al, al
jmp 0x458d5b
push str.JoinDetails
lea edx, [ebp - 0x234]
push edx
call fcn.0042bfe0
add esp, 8
movzx eax, al
cmp eax, 1
je 0x45881a
xor al, al
jmp 0x458d5b
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.00492848
add esp, 0xc
mov eax, dword [ebp - 0x238]
push eax
call fcn.004373c0
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00437ce0
add esp, 4
mov dword [ebp - 0x260], eax
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.004391f0
add esp, 8
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00438210
add esp, 4
cmp dword [ebp - 0x228], 0
je 0x458d4c
mov edx, dword [ebp - 0x228]
cmp dword [edx + 4], 0
je 0x458d4a
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x244], ecx
cmp dword [ebp - 0x244], 0
je 0x458d4a
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.004373c0
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00437ce0
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.00492848
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.004391f0
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 0x458965
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.00492848
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.004391f0
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 0x4589cd
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.00492848
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.004391f0
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 0x458a35
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.00492848
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.004391f0
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 0x458aa0
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.00492848
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.004391f0
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 0x458b0b
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.00457540
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.00457580
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.00457670
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.00492848
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.004391f0
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 0x458bc6
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.004576d0
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.00457710
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.00457800
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.00492848
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.004391f0
add esp, 8
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x258]
push edx
call fcn.00438210
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 0x458c93
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 0x458cae
mov ecx, dword [ebp - 0x230]
add ecx, 1
mov dword [ebp - 0x230], ecx
cmp dword [ebp - 0x230], 1
jg 0x458ce8
mov edx, dword [ebp - 0x230]
mov eax, dword [edx*4 + 0x512850]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.00493b10
add esp, 8
test eax, eax
jne 0x458ce6
mov dl, byte [ebp - 0x230]
mov byte [ebp - 0x249], dl
jmp 0x458ce8
jmp 0x458c9f
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.00457290
add esp, 0x20
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00457350
add esp, 8
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x244], edx
jmp 0x4588b3
jmp 0x458d59
push str._nNo_Join_details_n
call fcn.00423960
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret