Function at 0x479f80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x62c140]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x23d], 0
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.00472700
add esp, 8
push eax
call fcn.00584f40
add esp, 0xc
mov dword [ebp - 0x228], eax
push 0
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0044e5b0
add esp, 8
push 0x10
push 0
push 0x10
mov edx, dword [ebp + 0x10]
push edx
call fcn.00472700
add esp, 8
push eax
call fcn.00584f40
add esp, 0xc
mov dword [ebp - 0x234], eax
push str.QueryvsSort
lea eax, [ebp - 0x214]
push eax
call fcn.00440b70
add esp, 8
movzx ecx, al
cmp ecx, 1
je 0x47a024
xor al, al
jmp 0x47a347
push str.SortDetails
lea edx, [ebp - 0x210]
push edx
call fcn.00440b70
add esp, 8
movzx eax, al
cmp eax, 1
je 0x47a047
xor al, al
jmp 0x47a347
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_SORT_ID_FROM_QueryvsSort_WHERE_QUERY_ID___d
lea edx, [ebp - 0x208]
push edx
call fcn.0057f0e8
add esp, 0xc
mov eax, dword [ebp - 0x214]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x244], eax
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00456dc0
add esp, 4
cmp dword [ebp - 0x20c], 0
je 0x47a338
mov edx, dword [ebp - 0x20c]
cmp dword [edx + 4], 0
je 0x47a336
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x21c], ecx
cmp dword [ebp - 0x21c], 0
je 0x47a302
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x210]
push eax
call fcn.00453e90
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x238]
push edx
push str.SELECT_TABLENAME_FROM_SortDetails_WHERE_SORT_ID___d
lea eax, [ebp - 0x208]
push eax
call fcn.0057f0e8
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x47a1a1
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
je 0x47a1a1
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x238]
push ecx
push str.SELECT_COLUMNNAME_FROM_SortDetails_WHERE_SORT_ID___d
lea edx, [ebp - 0x208]
push edx
call fcn.0057f0e8
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x47a218
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
je 0x47a218
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x238]
push eax
push str.SELECT_SORTTYPE_FROM_SortDetails_WHERE_SORT_ID___d
lea ecx, [ebp - 0x208]
push ecx
call fcn.0057f0e8
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00457da0
add esp, 8
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00456dc0
add esp, 4
cmp dword [ebp - 0x224], 0
je 0x47a2a0
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
je 0x47a2a0
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov al, byte [edx]
mov byte [ebp - 0x23d], al
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.00477d50
add esp, 0x20
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x218]
mov dword [ecx], edx
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0044e770
add esp, 8
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x21c], eax
jmp 0x47a0e0
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, byte [ebp - 0x23d]
push edx
mov eax, dword [ebp - 0x228]
push eax
call fcn.004782e0
add esp, 0xc
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00478330
add esp, 8
jmp 0x47a345
push str._nNo_Sort_details_n
call fcn.0043d390
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret