Function at 0x507820
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x507828
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x507a6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0x507a88
lea edx, [ebp - 8]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 8]
push 0x507ae8
lea edx, [ebp - 0xc]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0e8
push dword [ebp - 0xc]
push 0x507b00
lea edx, [ebp - 0x10]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0fc
push dword [ebp - 0x10]
push 0x507b14
lea eax, [ebp - 4]
mov edx, 7
call fcn.00404da8
mov ecx, dword [ebp - 4]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
mov edx, dword [esi + 0x388]
call fcn.004eeaa4
test al, al
je 0x507a3e
lea eax, [ebp - 0x14]
push eax
mov edx, 0x507b2c
mov eax, dword [esi + 0x388]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x28]
wait
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 3
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x507b38
call fcn.0040a424
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x310]
call fcn.00446fdc
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x507b48
mov eax, dword [esi + 0x388]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x28]
wait
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 3
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x507b38
call fcn.0040a424
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x314]
call fcn.00446fdc
mov edx, 0x507b54
mov eax, dword [esi + 0x388]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x58]
mov edi, eax
push 0x507b60
lea edx, [ebp - 0x34]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 0x34]
push 0x507ae8
lea edx, [ebp - 0x38]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0e8
push dword [ebp - 0x38]
push 0x507b00
lea edx, [ebp - 0x3c]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0fc
push dword [ebp - 0x3c]
push 0x507ba0
lea eax, [ebp - 0x30]
mov edx, 7
call fcn.00404da8
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
mov edx, dword [esi + 0x388]
call fcn.004eeaa4
test al, al
je 0x507a3e
mov edx, 0x507bb8
mov eax, dword [esi + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0040925c
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0x31c]
call fcn.00446fdc
lea edx, [ebp - 0x50]
mov eax, dword [esi + 0x31c]
call fcn.00446fac
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040925c
mov eax, dword [ebp - 0x4c]
call fcn.004096a0
add eax, edi
lea edx, [ebp - 0x48]
call fcn.00409600
mov edx, dword [ebp - 0x48]
mov eax, dword [esi + 0x318]
call fcn.00446fdc
mov eax, dword [esi + 0x388]
call fcn.004822dc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507a75
lea eax, [ebp - 0x50]
call fcn.00404a30
lea eax, [ebp - 0x4c]
mov edx, 9
call fcn.00404a54
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404a54
ret