Function at 0x51e5c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xe4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51e5e5
jmp 0x51e82d
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x2a]
add edx, 1
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx + eax + 0x6c]
jle 0x51e61b
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0x5a943c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056b200
add esp, 0xc
jmp 0x51e82d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
lea eax, [eax + edx + 2]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.0056f320
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x51e649
jmp 0x51e82d
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc8]
cmp ecx, 2
jl 0x51e66c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00524680
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00479b70
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0056b0f0
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x51e6b0
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 0x14], ecx
jge 0x51e708
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0056b030
add esp, 8
test eax, eax
jne 0x51e706
mov ecx, dword [ebp - 8]
push ecx
push 0x5a9420
mov edx, dword [ebp + 8]
push edx
call fcn.0056b200
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0056f630
add esp, 8
jmp 0x51e82d
jmp 0x51e6a7
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x2a]
and eax, 7
jne 0x51e75f
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x2a]
add edx, 8
shl edx, 4
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0056f140
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x51e756
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0056f630
add esp, 8
jmp 0x51e82d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x2a]
shl eax, 4
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 4]
mov dword [ebp - 0xc], eax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x51e7a3
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0xd], 0x41
mov edx, dword [ebp - 0xc]
mov byte [edx + 0xe], 1
jmp 0x51e811
mov eax, dword [ebp - 8]
push eax
call fcn.0056b450
add esp, 4
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00479b70
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0056b0f0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0051e320
add esp, 8
mov edx, dword [ebp - 0xc]
mov byte [edx + 0xd], al
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0xf]
or ecx, 4
mov edx, dword [ebp - 0xc]
mov byte [edx + 0xf], cl
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x2a]
add cx, 1
mov edx, dword [ebp - 4]
mov word [edx + 0x2a], cx
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], 0
mov esp, ebp
pop ebp
ret