Function at 0x50c3e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x50c3e8
push ecx
push ebx
push esi
mov ebx, eax
mov esi, dword [0x53d50c]
xor eax, eax
push ebp
push 0x50c898
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0x50c8b0
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.004eef34
push dword [ebp - 0x14]
push 0x50c92c
lea edx, [ebp - 0x18]
mov eax, dword [esi]
call fcn.004ef0c0
push dword [ebp - 0x18]
push 0x50c944
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
call fcn.004ef0ac
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00404da8
push 0x50c95c
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x20]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
push 0x50c990
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x24]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
mov eax, dword [ebp - 8]
mov edx, 0x50c9a0
call fcn.00404e2c
je 0x50c4db
mov eax, dword [ebp - 0xc]
mov edx, 0x50c9a0
call fcn.00404e2c
jne 0x50c4e8
lea eax, [ebp - 0x10]
mov edx, 0x50c9ac
call fcn.00404cf0
push 0x50c9c8
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x28]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x28]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
push 0x50c9d8
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x2c]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
mov eax, dword [ebp - 8]
mov edx, 0x50c9a0
call fcn.00404e2c
je 0x50c574
mov eax, dword [ebp - 0xc]
mov edx, 0x50c9a0
call fcn.00404e2c
jne 0x50c581
lea eax, [ebp - 0x10]
mov edx, 0x50c9e8
call fcn.00404cf0
push 0x50ca04
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x30]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
push 0x50ca14
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x34]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x34]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
mov eax, dword [ebp - 8]
mov edx, 0x50c9a0
call fcn.00404e2c
je 0x50c60d
mov eax, dword [ebp - 0xc]
mov edx, 0x50c9a0
call fcn.00404e2c
jne 0x50c61a
lea eax, [ebp - 0x10]
mov edx, 0x50ca24
call fcn.00404cf0
push 0x50ca40
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x38]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
push 0x50ca50
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [esi]
call fcn.004ef858
lea eax, [ebp - 0x3c]
mov edx, 0x50c96c
call fcn.00404cf0
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi]
mov ecx, 0x50c980
call fcn.004efb90
test al, al
je 0x50c870
mov eax, dword [ebp - 8]
mov edx, 0x50c9a0
call fcn.00404e2c
je 0x50c6a6
mov eax, dword [ebp - 0xc]
mov edx, 0x50c9a0
call fcn.00404e2c
jne 0x50c6b3
lea eax, [ebp - 0x10]
mov edx, 0x50ca60
call fcn.00404cf0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x360]
call fcn.004eeaa4
test al, al
je 0x50c870
mov eax, dword [ebx + 0x360]
call fcn.00484674
mov eax, dword [ebx + 0x318]
mov eax, dword [eax + 0x22c]
call fcn.004a9030
jmp 0x50c84e
mov esi, dword [ebx + 0x318]
mov edx, 0x50ca7c
mov eax, dword [ebx + 0x360]
call fcn.004832e4
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x40]
push eax
xor edx, edx
mov eax, dword [esi + 0x22c]
call fcn.004a8ee0
pop edx
call fcn.004a8974
mov edx, 0x50ca8c
mov eax, dword [ebx + 0x360]
call fcn.004832e4
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x44]
push eax
xor edx, edx
mov eax, dword [esi + 0x22c]
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x48]
push eax
mov edx, 0x50ca98
mov eax, dword [ebx + 0x360]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x5c]
wait
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 3
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x50caa4
call fcn.0040a424
mov eax, dword [ebp - 0x48]
push eax
xor edx, edx
mov eax, dword [esi + 0x22c]
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x60]
push eax
mov edx, 0x50cab4
mov eax, dword [ebx + 0x360]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x5c]
wait
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 3
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x50caa4
call fcn.0040a424
mov eax, dword [ebp - 0x60]
push eax
xor edx, edx
mov eax, dword [esi + 0x22c]
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x64]
push eax
mov edx, 0x50cac0
mov eax, dword [ebx + 0x360]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x5c]
wait
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 3
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x50caa4
call fcn.0040a424
mov eax, dword [ebp - 0x64]
push eax
xor edx, edx
mov eax, dword [esi + 0x22c]
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x360]
call fcn.0048498c
mov eax, dword [ebx + 0x360]
cmp byte [eax + 0xa1], 0
je 0x50c6ec
mov eax, dword [ebx + 0x360]
call fcn.004822dc
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c89f
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x48]
mov edx, 0x11
call fcn.00404a54
ret