Function at 0x51a44c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x51a6eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x48]
test eax, eax
je 0x51a484
mov dword [ebp - 4], eax
jmp 0x51a6c8
lea eax, [ebp - 0x10]
mov edx, 0x51a704
call fcn.00404474
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x18]
mov dl, 1
mov eax, dword [0x50cd68]
call fcn.0051cc08
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1a]
call fcn.0048eca4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
call fcn.0048eca4
mov dword [ebp - 0x24], eax
mov edx, 0xfa0
mov eax, dword [0x47fd0c]
call fcn.00480344
mov dword [ebp - 0x14], eax
mov edx, 0xfa0
mov eax, dword [0x47fd0c]
call fcn.00480344
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x51a6c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 0x30
mov edx, dword [ebp - 0x10]
call fcn.00404430
mov eax, dword [ebp - 8]
mov word [eax + 0x38], 8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov edx, edi
call fcn.0041e7a0
lea eax, [edi + 0x14]
mov edx, 0x51a79c
call fcn.00404430
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov edx, edi
call fcn.0041e7a0
lea eax, [edi + 0x14]
mov edx, 0x51a7a8
call fcn.00404430
push 1
mov eax, dword [ebp - 0x14]
push eax
push 0xfa0
push 9
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
lea edx, [ebp - 0xc]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00520edc
push eax
mov eax, esi
call fcn.0051ad0c
call fcn.00514524
mov edx, eax
mov ecx, ebx
pop eax
call fcn.00513808
push 2
mov eax, dword [ebp - 0x18]
push eax
push 0xfa0
push 9
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
lea edx, [ebp - 0xc]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00520edc
push eax
mov eax, esi
call fcn.0051ad0c
call fcn.00514524
mov edx, eax
mov ecx, ebx
pop eax
call fcn.00513808
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], esi
push 0
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00520f60
push eax
mov eax, esi
call fcn.0051ad0c
call fcn.00514524
mov edx, eax
mov ecx, ebx
pop eax
call fcn.00513808
lea edx, [ebp - 0x1a]
mov eax, dword [ebp - 0x20]
call fcn.0048ecb4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.0048ecb4
movzx eax, word [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.00513494
mov edi, 1
lea eax, [ebp - 0x2c]
call fcn.004043dc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x51a67f
mov eax, dword [ebp - 0x28]
mov bl, byte [eax + edi - 1]
cmp bl, 0x2e
jne 0x51a669
mov eax, dword [ebp - 0x2c]
call fcn.00409458
mov edx, dword [ebp - 4]
add edx, edx
lea edx, [edx + edx*4]
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
call fcn.004043dc
jmp 0x51a67e
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.004045c4
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.004046b4
inc edi
mov eax, dword [ebp - 0x28]
call fcn.004046ac
cmp edi, eax
jle 0x51a63e
mov eax, dword [ebp - 4]
mov dword [esi + 0x48], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a6c8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47fd0c]
call fcn.00480360
mov edx, dword [ebp - 0x18]
mov eax, dword [0x47fd0c]
call fcn.00480360
mov eax, dword [ebp - 8]
call fcn.004035c0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a6f2
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404400
lea eax, [ebp - 0x10]
call fcn.004043dc
ret