Function at 0x68d610
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74ceab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
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 0x68d678
push 0x8f
push 0x7d4790
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 + 8], ebx
je 0x68d6b3
push 0x90
push 0x7d4790
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 0x68d6cf
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], 0x75e074
mov ebx, eax
test ebx, ebx
mov dword [esi + 8], ebx
jne 0x68d70c
push 0x93
push 0x7d4790
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_castle
lea ecx, [ebp - 0x118]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
push ecx
mov dword [ebp + 8], eax
call fcn.0070258b
mov ecx, dword [0x8019d8]
add esp, 0x10
test ecx, ecx
jne 0x68d786
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0
push eax
mov edx, dword [ecx]
call dword [edx]
push eax
mov ecx, 0x8019d8
call fcn.0047bd90
mov ecx, dword [0x8019d8]
test ecx, ecx
setne al
test al, al
jne 0x68d786
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x68d7b2
mov edx, dword [ecx]
push 0
call dword [edx]
test eax, eax
mov dword [ebx + 4], eax
je 0x68d7a2
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 0x68d847
push 0x95
push 0x7d4790
push str.m_pData__Create_Database____ID_NONE_
push str.IF_NOT
push 0x793720
call fcn.00401080
mov ecx, dword [esi + 8]
add esp, 0x14
test ecx, ecx
je 0x68d832
mov eax, dword [ecx]
mov dword [ebp - 4], 0
call dword [eax]
mov dword [esi + 8], 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 + 8]
lea eax, [edi + 4]
push 0x10
push eax
mov edx, dword [ecx]
push 1
call dword [edx + 0x14]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x14]
push eax
push 2
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x18]
push eax
push 3
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x1c]
push eax
push 4
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x20]
push eax
push 5
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x24]
push eax
push 6
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x28]
push eax
push 7
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x2c]
push eax
push 8
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x30]
push eax
push 9
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x34]
push eax
push 0xa
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
jne 0x68d97a
push 0xa8
push 0x7d4790
push str.m_pData__InsertRecord__
push str.IF_NOT
push 0x793720
call fcn.00401080
mov ecx, dword [esi + 8]
add esp, 0x14
test ecx, ecx
je 0x68d965
mov eax, dword [ecx]
mov dword [ebp - 4], 2
call dword [eax]
mov dword [esi + 8], 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
push 4
call fcn.00728cf3
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x68d99b
mov ecx, eax
call fcn.006c16e0
jmp 0x68d99d
xor eax, eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
jne 0x68d9e0
push 0xb0
push 0x7d4790
push str.m_pBuild
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 ecx, dword [esi + 8]
test ecx, ecx
jne 0x68da09
push 0x4a
push 0x7ae1cc
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x68da0e
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push eax
call fcn.006c17e0
test al, al
jne 0x68dabc
push 0xb2
push 0x7d4790
push str.m_pBuild__CreateByCastleId_this__GetID___
push str.IF_NOT
push 0x793720
call fcn.00401080
mov edi, dword [esi]
add esp, 0x14
test edi, edi
je 0x68daa7
mov ecx, edi
mov dword [ebp - 4], 5
call fcn.006c16f0
push edi
call fcn.00728d1c
add esp, 4
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 + 8]
test ecx, ecx
jne 0x68dae5
push 0x44
push 0x7ae1cc
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor edi, edi
jmp 0x68daee
mov eax, dword [ecx]
push 7
call dword [eax + 8]
mov edi, eax
mov ecx, dword [0x7fd5c8]
test ecx, ecx
jne 0x68db1b
push 0x1c7
push 0x797a90
push str.g_pCastleLevReqSet
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
push edi
call fcn.00539c10
test eax, eax
jne 0x68db77
push 0xbb
push 0x7d4790
push str.pLevReqData
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
push edi
push str.cq_castle_lev_req
push 0x7d4950
call fcn.0040a420
add esp, 0xc
mov ecx, esi
call fcn.00690660
test al, al
jne 0x68db8c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [eax]
push 6
mov ecx, eax
call dword [edx + 8]
mov ecx, dword [esi]
push eax
push 0
call fcn.006c2820
jmp 0x68db59
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
mov dword [ebp - 0x18], 0
call fcn.00690380
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x68dbc5
push 0x5f
push 0x7ae1cc
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x68dc24
mov edx, dword [ecx]
push 3
call dword [edx + 8]
test eax, eax
sete al
test al, al
je 0x68dc24
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x68dbfe
push 0x4b
push 0x7ae1cc
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x68dc05
mov eax, dword [ecx]
push 4
call dword [eax + 8]
mov ecx, dword [0x7fd5e4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x54]
mov edi, eax
test edi, edi
je 0x68dc24
mov ecx, esi
call fcn.00690ec0
mov byte [edi + 0x8f4], al
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