Function at 0x4a5960
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73fd00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp edi, ebx
mov dword [ebp - 0x14], ecx
jne 0x4a59c6
push 0x17e
push 0x7a4da0
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 8
push 0xc
call fcn.00728cf3
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a5a84
push 0x7b4240
push 0x7a4d54
lea eax, [ebp - 0x11c]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
mov dword [esi], 0x7534d8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebx, dword [0x7fd5f0]
push eax
call fcn.0070258b
mov ecx, dword [0x801a8c]
add esp, 0x10
test ecx, ecx
jne 0x4a5aba
mov edx, dword [ebx]
lea eax, [ebp - 0x11c]
push ecx
push eax
mov ecx, ebx
call dword [edx]
mov ebx, eax
mov eax, dword [0x801a8c]
test eax, eax
jne 0x4a5a35
test ebx, ebx
jne 0x4a5a53
push 0x1a
push str.....common_autoptr.h
push str._m_ptr__ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
test ebx, ebx
setne al
mov ecx, ebx
test al, al
mov dword [0x801a8c], ecx
jne 0x4a5aba
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x4a5ae2
push 0x181
push 0x7a4da0
push str.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 8
mov edx, dword [ecx]
push 0
call dword [edx]
test eax, eax
mov dword [esi + 4], eax
je 0x4a5ad6
mov edx, dword [eax]
push 0x7b4240
mov ecx, eax
call dword [edx + 0x30]
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
test edx, edx
setne al
test al, al
jne 0x4a5b3e
push 0x183
push 0x7a4da0
push str.pData__Create__Database____ID_NONE_
push str.IF_NOT
push 0x793720
call fcn.00401080
mov eax, dword [esi]
add esp, 0x14
mov ecx, esi
mov dword [ebp - 4], 0
call dword [eax]
jmp 0x4a5aa5
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
push eax
push 1
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [edi + 4]
mov edx, dword [esi]
push eax
push 2
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 8]
push 0x10
push eax
push 3
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [edi + 0x18]
mov edx, dword [esi]
push eax
push 4
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x1c]
mov ecx, esi
push eax
push 5
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 0x1e]
push 0xff
push eax
push 6
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x11e]
mov ecx, esi
push eax
push 7
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 0x120]
push 0xff
push eax
push 8
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x220]
mov ecx, esi
push eax
push 9
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 0x222]
push 0xff
push eax
push 0xa
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x322]
mov ecx, esi
push eax
push 0xb
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 0x324]
push 0xff
push eax
push 0xc
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x424]
mov ecx, esi
push eax
push 0xd
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 0x426]
push 0xff
push eax
push 0xe
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x526]
mov ecx, esi
push eax
push 0xf
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 0x528]
push 0xff
push eax
push 0x10
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x628]
mov ecx, esi
push eax
push 0x11
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [edi + 0x62a]
push 0xff
push eax
push 0x12
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
xor eax, eax
mov ax, word [edi + 0x72a]
mov ecx, esi
push eax
push 0x13
call dword [edx + 0x10]
mov edx, dword [esi]
add edi, 0x72c
push 0xff
push edi
push 0x14
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
test eax, eax
jne 0x4a5cf7
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 2
call dword [edx]
jmp 0x4a5aa5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
lea edx, [ebp + 8]
lea eax, [ebp + 0xc]
lea edi, [ecx + 4]
push edx
push eax
mov ecx, edi
call fcn.004a6fe0
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp eax, ecx
je 0x4a5d29
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jae 0x4a5d53
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edx
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
push edx
mov dword [ebp - 0x18], 0
call fcn.004a6ca0
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.004a6b40
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x14], esi
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8