Function at 0x562fc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
mov dword [ebp - 4], ebx
je 0x5630a7
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x5630a7
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.00562e50
test eax, eax
jne 0x5630a9
call fcn.00563660
mov esi, eax
test esi, esi
je 0x5630a7
mov edx, dword [ebx + 0x10]
push 0x7b4240
push 0x7b3e28
lea eax, [ebp - 0x10c]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
push eax
mov dword [ebp + 8], edx
call fcn.0070258b
mov ecx, dword [0x801a40]
add esp, 0x10
test ecx, ecx
jne 0x5630b5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0
push eax
mov edx, dword [ecx]
call dword [edx]
mov ebx, eax
mov eax, dword [0x801a40]
test eax, eax
jne 0x56305a
test ebx, ebx
jne 0x563078
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 [0x801a40], ecx
jne 0x5630b2
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 4]
mov edx, dword [ecx]
push 0
call dword [edx]
test eax, eax
mov dword [esi + 4], eax
je 0x5630d1
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
je 0x5630a7
mov ecx, dword [edi + 4]
mov eax, dword [esi]
push ecx
push 1
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [edi + 8]
mov edx, dword [esi]
push eax
push 2
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [edi + 0xc]
mov edx, dword [esi]
push eax
push 3
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esi]
xor eax, eax
mov al, byte [edi + 0x10]
mov ecx, esi
push eax
push 4
call dword [edx + 0x10]
mov eax, dword [edi + 0x14]
mov edx, dword [esi]
push eax
push 5
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [edi + 0x18]
mov edx, dword [esi]
push eax
push 6
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [ebx + 4]
lea ecx, [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
mov edi, dword [edx + 4]
mov dword [ebp - 4], ecx
test edi, edi
mov ebx, edx
mov cl, 1
je 0x563168
mov ecx, dword [edi + 0x10]
mov ebx, edi
cmp eax, ecx
setb cl
test cl, cl
je 0x563161
mov edi, dword [edi + 8]
jmp 0x563164
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x56314e
test cl, cl
mov dword [ebp + 8], ebx
je 0x563199
cmp ebx, dword [edx + 8]
jne 0x563191
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
push ebx
push edi
push ecx
mov ecx, dword [ebp - 4]
call fcn.00564d50
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
call fcn.00437850
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
cmp eax, ecx
jae 0x5631b8
lea ecx, [ebp - 0xc]
lea edx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 4]
push ebx
push edi
push edx
call fcn.00564d50
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4