Function at 0x50d244
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x50d24c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x50d5a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0x50d5c4
mov esi, dword [ebx + 0x350]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [esi + 0x23c]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x10]
push 0x50d5f0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404da8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 0x360]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eeaa4
mov eax, dword [ebx + 0x360]
mov edx, 0x50d5fc
call fcn.004832e4
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
xor eax, eax
push ebp
push 0x50d3cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x360]
call fcn.004822dc
push 0x50d608
lea edx, [ebp - 0x18]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 0x18]
push 0x50d658
lea edx, [ebp - 0x1c]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0c0
push dword [ebp - 0x1c]
push 0x50d664
lea edx, [ebp - 0x20]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0ac
push dword [ebp - 0x20]
push 0x50d664
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x358]
call fcn.00446fac
push dword [ebp - 0x24]
push 0x50d664
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x34c]
call fcn.00446fac
push dword [ebp - 0x28]
push 0x50d664
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x35c]
call fcn.00446fac
push dword [ebp - 0x2c]
push 0x50d670
push dword [ebp - 8]
push 0x50d658
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x354]
call fcn.00446fac
push dword [ebp - 0x30]
push 0x50d67c
lea eax, [ebp - 0x14]
mov edx, 0x11
call fcn.00404da8
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x360]
call fcn.00499b70
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x360]
call fcn.00499a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d3f1
mov esi, dword [ebx + 0x318]
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x350]
call fcn.00446fac
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [esi + 0x22c]
xor edx, edx
call fcn.004a8ee0
pop edx
call fcn.004a8974
lea edx, [ebp - 0x38]
mov eax, dword [ebx + 0x354]
call fcn.00446fac
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [esi + 0x22c]
xor edx, edx
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx + 0x34c]
call fcn.00446fac
mov eax, dword [ebp - 0x48]
call fcn.0040afc8
fstp xword [ebp - 0x54]
wait
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 3
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x50d6c0
call fcn.0040a424
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [esi + 0x22c]
xor edx, edx
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x358]
call fcn.00446fac
mov eax, dword [ebp - 0x5c]
call fcn.0040afc8
fstp xword [ebp - 0x54]
wait
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 3
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x50d6c0
call fcn.0040a424
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [esi + 0x22c]
xor edx, edx
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebx + 0x35c]
call fcn.00446fac
mov eax, dword [ebp - 0x64]
call fcn.0040afc8
fstp xword [ebp - 0x54]
wait
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 3
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x50d6c0
call fcn.0040a424
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [esi + 0x22c]
xor edx, edx
call fcn.004a8f6c
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov esi, dword [ebx + 0x318]
mov eax, esi
call fcn.004ac434
mov edx, eax
mov eax, esi
call fcn.004ac6dc
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d5b0
lea eax, [ebp - 0x64]
call fcn.00404a30
lea eax, [ebp - 0x60]
call fcn.00404a30
lea eax, [ebp - 0x5c]
call fcn.00404a30
lea eax, [ebp - 0x58]
call fcn.00404a30
lea eax, [ebp - 0x48]
call fcn.00404a30
lea eax, [ebp - 0x3c]
call fcn.00404a30
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00404a54
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00404a54
ret