Function at 0x5005b4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x5005bc
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x500bd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x3a8]
call fcn.00446fac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040925c
mov eax, dword [ebp - 0xc]
mov edx, 0x500bec
call fcn.00404e2c
jne 0x500611
lea eax, [ebp - 8]
mov edx, 0x500bf8
call fcn.00404ac8
jmp 0x50061e
lea eax, [ebp - 8]
mov edx, 0x500c04
call fcn.00404ac8
mov eax, dword [ebx + 0x3ac]
call fcn.004822dc
push 0x500c10
lea edx, [ebp - 0x18]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 0x18]
push 0x500c84
lea edx, [ebp - 0x1c]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0d4
push dword [ebp - 0x1c]
push 0x500c90
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x384]
call fcn.00446fac
push dword [ebp - 0x20]
push 0x500c9c
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x388]
call fcn.00446fac
push dword [ebp - 0x24]
push 0x500c9c
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x38c]
call fcn.00446fac
push dword [ebp - 0x28]
push 0x500c84
mov eax, dword [ebx + 0x3a0]
push dword [eax + 0x214]
push dword [eax + 0x210]
lea edx, [ebp - 0x2c]
mov eax, 0x500ca8
call fcn.0040c3b0
push dword [ebp - 0x2c]
push 0x500cbc
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x394]
call fcn.00446fac
push dword [ebp - 0x30]
push 0x500cbc
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x390]
call fcn.00446fac
push dword [ebp - 0x34]
push 0x500cbc
lea edx, [ebp - 0x38]
mov eax, dword [ebx + 0x398]
call fcn.00446fac
push dword [ebp - 0x38]
push 0x500c90
push dword [ebp - 8]
push 0x500c9c
mov eax, dword [ebx + 0x39c]
mov edx, dword [eax]
call dword [edx + 0xc8]
lea edx, [ebp - 0x3c]
call fcn.00409600
push dword [ebp - 0x3c]
push 0x500c9c
mov eax, dword [ebx + 0x3a4]
mov edx, dword [eax]
call dword [edx + 0xc8]
inc eax
lea edx, [ebp - 0x40]
call fcn.00409600
push dword [ebp - 0x40]
push 0x500cc8
lea eax, [ebp - 0x14]
mov edx, 0x19
call fcn.00404da8
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x3ac]
call fcn.00499b70
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor eax, eax
push ebp
push 0x500791
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x3ac]
call fcn.00499a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5007b6
lea edx, [ebp - 0x48]
mov esi, dword [ebx + 0x384]
mov eax, esi
call fcn.00446fac
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040925c
mov edx, dword [ebp - 0x44]
mov eax, dword [esi + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x500869
push 0x500d08
lea edx, [ebp - 0x50]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 0x50]
push 0x500d94
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404da8
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebx + 0x3ac]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ee758
test al, al
je 0x500af1
mov edx, dword [ebx + 0x3ac]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
mov ecx, 0x500dd4
call fcn.004ee758
test al, al
je 0x500af1
lea edx, [ebp - 0x54]
mov esi, dword [ebx + 0x384]
mov eax, esi
call fcn.00446fac
mov edx, dword [ebp - 0x54]
mov eax, dword [esi + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov esi, dword [ebx + 0x320]
lea edx, [ebp - 0x58]
mov eax, dword [ebx + 0x384]
call fcn.00446fac
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [esi + 0x22c]
xor edx, edx
call fcn.004a8ee0
pop edx
call fcn.004a8974
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x388]
call fcn.00446fac
mov eax, dword [ebp - 0x5c]
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 eax, dword [ebx + 0x3a0]
push dword [eax + 0x214]
push dword [eax + 0x210]
lea edx, [ebp - 0x60]
mov eax, 0x500e78
call fcn.0040c3b0
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]
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebx + 0x390]
call fcn.00446fac
mov eax, dword [ebp - 0x70]
call fcn.0040afc8
fstp xword [ebp - 0x7c]
wait
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 3
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x500e8c
call fcn.0040a424
mov eax, dword [ebp - 0x64]
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 - 0x80]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [ebx + 0x394]
call fcn.00446fac
mov eax, dword [ebp - 0x84]
call fcn.0040afc8
fstp xword [ebp - 0x7c]
wait
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 3
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x500e8c
call fcn.0040a424
mov eax, dword [ebp - 0x80]
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 - 0x88]
push eax
lea edx, [ebp - 0x8c]
mov eax, dword [ebx + 0x398]
call fcn.00446fac
mov eax, dword [ebp - 0x8c]
call fcn.0040afc8
fstp xword [ebp - 0x7c]
wait
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 3
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x500e8c
call fcn.0040a424
mov eax, dword [ebp - 0x88]
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 edx, [ebp - 0x90]
mov eax, dword [ebx + 0x38c]
call fcn.00446fac
mov eax, dword [ebp - 0x90]
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 edx, [ebp - 0x98]
mov eax, dword [ebx + 0x3a8]
call fcn.00446fac
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.0040925c
mov eax, dword [ebp - 0x94]
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 edx, [ebp - 0x9c]
mov eax, dword [ebx + 0x39c]
call fcn.00446fac
mov eax, dword [ebp - 0x9c]
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 edx, [ebp - 0xa0]
mov eax, dword [ebx + 0x3a4]
call fcn.00446fac
mov eax, dword [ebp - 0xa0]
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 eax, dword [esi + 0x22c]
xor edx, edx
call fcn.004a8f6c
mov eax, dword [eax + 8]
mov edx, 0x500e9c
mov ecx, dword [eax]
call dword [ecx + 0x38]
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 0x500bda
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.00404a54
lea eax, [ebp - 0x94]
call fcn.00404a30
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x88]
call fcn.00404a30
lea eax, [ebp - 0x84]
call fcn.00404a30
lea eax, [ebp - 0x80]
call fcn.00404a30
lea eax, [ebp - 0x70]
call fcn.00404a30
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00404a54
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x48]
call fcn.00404a30
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404a54
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404a54
lea eax, [ebp - 0x2c]
call fcn.00404a30
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404a54
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404a54
lea eax, [ebp - 0x10]
call fcn.00404a30
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404a54
ret