Function at 0x50ef64
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x50ef6d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov esi, 0x51afe0
xor eax, eax
push ebp
push 0x50f38b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x3e8], 0
je 0x50f34d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3b4]
mov dl, 1
call fcn.0045e7a0
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x3d8], 1
je 0x50f34d
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x3d9], 1
je 0x50f34d
lea eax, [ebp - 8]
call fcn.00405298
test bl, bl
jne 0x50eff4
cmp byte [ebp + 0x18], 1
jne 0x50eff4
lea eax, [ebp - 8]
mov edx, 0x50f3a4
call fcn.00405330
cmp bl, 1
jne 0x50f00c
cmp byte [ebp + 0x18], 0
jne 0x50f00c
lea eax, [ebp - 8]
mov edx, 0x50f3d0
call fcn.00405330
test bl, bl
jne 0x50f023
cmp byte [ebp + 0x18], 0
jne 0x50f023
lea eax, [ebp - 8]
mov edx, 0x50f3fc
call fcn.00405330
xor eax, eax
push ebp
push 0x50f346
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50f324
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x3d8], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3b8]
mov dl, 1
call fcn.0045e7a0
mov eax, dword [esi]
call fcn.0040690c
mov edi, eax
dec edi
test edi, edi
jl 0x50f078
inc edi
xor ebx, ebx
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
call fcn.0040434c
inc ebx
dec edi
jne 0x50f06a
push 0
mov eax, esi
mov ecx, 1
mov edx, dword [0x50b544]
call fcn.00406ac8
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x50f428
call fcn.0040d8d8
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edx, 0x50f444
call fcn.0040d8d8
push 0x50f460
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
call fcn.0040a618
push dword [ebp - 0x2c]
push dword [ebp - 8]
push 0x50f5c8
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0040a2bc
push dword [ebp - 0x30]
push 0x50f604
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.0040a2bc
push dword [ebp - 0x34]
push 0x50f614
lea eax, [ebp - 4]
mov edx, 8
call fcn.0040562c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.0050b7dc
jmp 0x50f304
mov eax, dword [esi]
call fcn.0040690c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x50b544]
call fcn.00406ac8
add esp, 4
mov dl, 1
mov eax, dword [0x50adc0]
call fcn.0040431c
mov edi, eax
mov eax, dword [esi]
mov dword [eax + ebx*4], edi
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f668
call fcn.0049fe74
lea eax, [ebp - 0x44]
call fcn.004134dc
mov edx, dword [esi]
mov edx, dword [edx + ebx*4]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f678
call fcn.0049fe74
lea edx, [ebp - 0x54]
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add eax, 8
call fcn.00415e50
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f68c
call fcn.0049fe74
lea edx, [ebp - 0x64]
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add eax, 0xc
call fcn.00415e50
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f69c
call fcn.0049fe74
lea edx, [ebp - 0x74]
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add eax, 0x10
call fcn.00415e50
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f6b0
call fcn.0049fe74
lea eax, [ebp - 0x84]
call fcn.00414e3c
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
fstp qword [eax + 0x18]
wait
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f6cc
call fcn.0049fe74
lea eax, [ebp - 0x94]
call fcn.004148f8
mov edx, dword [esi]
mov edx, dword [edx + ebx*4]
mov byte [edx + 0x24], al
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add eax, 0x20
mov edx, 0x50f6dc
call fcn.004052ec
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f6f4
call fcn.0049fe74
lea eax, [ebp - 0xa4]
call fcn.00418e10
test al, al
jne 0x50f2ca
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f6f4
call fcn.0049fe74
lea eax, [ebp - 0xb4]
call fcn.00414e3c
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov edx, 0x50f70c
call fcn.0040d8d8
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add eax, 0x20
mov edx, dword [ebp - 0x14]
call fcn.004052ec
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov edx, 0x50f728
call fcn.0049fe74
lea edx, [ebp - 0xc4]
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add eax, 0x28
call fcn.00415e50
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
call fcn.004a17a4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
cmp byte [eax + 0xa1], 0
je 0x50f11f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50f32e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f34d
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x3d8], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f392
lea eax, [ebp - 0xc4]
mov edx, dword [0x401144]
mov ecx, 9
call fcn.00406044
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004052bc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004052bc
ret