Function at 0x6c4420
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74e560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
jne 0x6c4485
push 0x2a
push 0x7da054
push str.pInfo
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi], ebx
je 0x6c44bc
push 0x2b
push 0x7da054
push str.NULLm_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc
call fcn.00728cf3
add esp, 4
cmp eax, ebx
je 0x6c44d8
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], 0x75f380
mov ebx, eax
test ebx, ebx
mov dword [esi], ebx
jne 0x6c4511
push 0x2e
push 0x7da054
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x7fd5f0]
push 0x7b4240
push str.cq_castleitem
lea ecx, [ebp - 0x114]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
push ecx
mov dword [ebp + 8], eax
call fcn.0070258b
mov ecx, dword [0x8019a8]
add esp, 0x10
test ecx, ecx
jne 0x6c458b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0
push eax
mov edx, dword [ecx]
call dword [edx]
push eax
mov ecx, 0x8019a8
call fcn.0047bd90
mov ecx, dword [0x8019a8]
test ecx, ecx
setne al
test al, al
jne 0x6c458b
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x6c45b7
mov edx, dword [ecx]
push 0
call dword [edx]
test eax, eax
mov dword [ebx + 4], eax
je 0x6c45a7
mov edx, dword [eax]
push 0x7b4240
mov ecx, eax
call dword [edx + 0x30]
mov dword [ebx + 8], eax
mov edx, dword [ebx + 4]
test edx, edx
setne al
test al, al
jne 0x6c4643
push 0x2f
push 0x7da054
push str.m_pData__Create_Database____ID_NONE_
push str.IF_NOT
push 0x793720
call fcn.00401080
mov ecx, dword [esi]
add esp, 0x14
test ecx, ecx
je 0x6c462e
mov eax, dword [ecx]
mov dword [ebp - 4], 0
call dword [eax]
mov dword [esi], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov eax, dword [edi + 4]
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi]
xor eax, eax
mov ax, word [edi + 8]
mov edx, dword [ecx]
push eax
push 2
call dword [edx + 0x10]
mov ecx, dword [esi]
xor eax, eax
mov ax, word [edi + 0xa]
mov edx, dword [ecx]
push eax
push 3
call dword [edx + 0x10]
mov ecx, dword [esi]
xor eax, eax
mov ax, word [edi + 0xc]
mov edx, dword [ecx]
push eax
push 4
call dword [edx + 0x10]
mov ecx, dword [esi]
xor eax, eax
mov ax, word [edi + 0xe]
mov edx, dword [ecx]
push eax
push 5
call dword [edx + 0x10]
mov ecx, dword [esi]
xor eax, eax
mov al, byte [edi + 0x10]
mov edx, dword [ecx]
push eax
push 6
call dword [edx + 0x10]
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
jne 0x6c473a
push 0x3d
push 0x7da054
push str.m_pData__InsertRecord__
push str.IF_NOT
push 0x793720
call fcn.00401080
mov ecx, dword [esi]
add esp, 0x14
test ecx, ecx
je 0x6c4725
mov eax, dword [ecx]
mov dword [ebp - 4], 2
call dword [eax]
mov dword [esi], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4