Function at 0x54fa98
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x54faa0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5506d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x550694
mov eax, dword [ebp - 0x10]
add eax, 0xc
call fcn.0040530c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.004d7108
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov ecx, 0x72
call fcn.004213e0
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
push ebp
push 0x5505fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x54fcc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x5506f0
call fcn.00404ea4
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x71], 0
jne 0x54fbec
mov eax, dword [ebp - 0x44]
add eax, 0x30
mov edx, 0x550704
movzx ecx, byte [eax]
inc ecx
call fcn.00403744
jne 0x54fb57
lea eax, [ebp - 4]
call fcn.00404e0c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 0x44]
add eax, 0xc
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 4
mov eax, dword [ebp - 0x44]
add eax, 0x1d
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 4
mov eax, 0x550718
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 4
mov eax, 0x550724
call fcn.0040b194
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 8]
call fcn.00409570
mov eax, dword [ebp - 0x70]
mov edx, 0x5507c8
call fcn.0047fcbc
dec eax
jle 0x54fbd7
call fcn.0040484c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x550694
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004d8adc
mov esi, eax
jmp 0x54fc7e
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 0x44]
add eax, 0xc
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 4
mov eax, dword [ebp - 0x44]
add eax, 0x1d
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 4
mov eax, 0x5507d4
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x6c]
push eax
mov eax, 0x550724
mov ecx, 4
pop edx
call fcn.0040b194
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 8]
call fcn.00409570
mov eax, dword [ebp - 0x74]
mov edx, 0x5507c8
call fcn.0047fcbc
dec eax
jle 0x54fc6e
call fcn.0040484c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x550694
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004d8adc
mov esi, eax
cmp dword [ebp - 0x28], 0
je 0x54fcac
cmp esi, 0x65
je 0x54fcac
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004d9c08
mov dword [ebp - 0x1c], eax
mov ecx, 1
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004d9c08
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54fccc
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004d8d7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5506db
lea eax, [ebp - 0xac]
mov edx, 7
call fcn.00404e30
lea eax, [ebp - 0x80]
call fcn.00404e0c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404e30
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e30
ret