Function at 0x50ca28
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x50ca31
xchg dword [ebp - 4], ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004048f8
xor eax, eax
push ebp
push 0x50cd27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
mov al, byte [eax + 0x45]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
mov byte [eax + 0x45], 0
mov eax, dword [ebp - 8]
call fcn.00404908
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00404640
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4d3f34]
call fcn.004d3fb0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50ccca
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
mov ebx, eax
cmp ebx, 0xe
jne 0x50cca3
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
mov ebx, eax
cmp ebx, 0x1c
jne 0x50cb00
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
mov ebx, eax
cmp ebx, 0x20
jne 0x50caf6
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
mov ebx, eax
jmp 0x50cb00
call fcn.00403e70
jmp 0x50ccd1
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.00408da4
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.004044e0
cmp ebx, 0x1f
je 0x50cb3d
cmp ebx, 0x14
je 0x50cb3d
cmp ebx, 0x24
je 0x50cb3d
cmp ebx, 0x1e
je 0x50cb3d
mov eax, dword [ebp - 0x14]
mov edx, 0x50cd3c
call fcn.00404854
jne 0x50cca3
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004044e0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
mov ebx, eax
cmp ebx, 0xb
jne 0x50cb8c
mov eax, dword [ebp - 0x18]
mov edx, 0x50cd4c
call fcn.00404854
jne 0x50cb8c
push dword [ebp - 0x18]
push 0x50cd5c
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004047c8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.004044e0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
mov eax, dword [ebp - 0x14]
mov edx, 0x50cd68
call fcn.00404854
jne 0x50cbc7
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004ac0a0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.004044e0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
mov edx, 0x50cd74
call fcn.005171e4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
push eax
lea eax, [ebp - 0x34]
xor edx, edx
call fcn.0041564c
lea ecx, [ebp - 0x34]
mov edx, 0x50d08c
pop eax
call fcn.004cb7bc
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.00408da4
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.0041564c
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
mov edx, 0x50d098
pop ecx
call fcn.004cb7bc
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
call fcn.00408da4
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
call fcn.0041564c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
mov edx, 0x50d0a8
pop ecx
call fcn.004cb7bc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
call fcn.004ca7d4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
lea ecx, [ebp - 0x6c]
mov edx, 0x50d08c
call fcn.004cb768
lea edx, [ebp - 0x6c]
mov eax, esi
call fcn.00414580
cmp dword [esi], 0
jne 0x50cca3
mov eax, esi
mov edx, 0x50d0b8
call fcn.0040449c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ccd1
mov eax, dword [ebp - 0xc]
call fcn.00403534
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xac]
mov dl, byte [ebp - 0xd]
mov byte [eax + 0x45], dl
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50cd2e
lea eax, [ebp - 0x6c]
call fcn.00410f00
lea eax, [ebp - 0x5c]
call fcn.00404448
lea eax, [ebp - 0x58]
call fcn.00410f00
lea eax, [ebp - 0x48]
call fcn.00404448
lea eax, [ebp - 0x44]
mov edx, dword [0x40112c]
mov ecx, 2
call fcn.0040504c
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040446c
lea eax, [ebp - 8]
call fcn.00404448
ret