Function at 0x477fb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73dab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
push eax
push str.cq_shortcut_key
lea ecx, [ebp - 0x520]
push str.SELECT__FROM__s_WHERE_player_id___u_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x520]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
xor ebx, ebx
push 0xc
mov dword [ebp - 4], ebx
call fcn.00728cf3
add esp, 4
cmp eax, ebx
je 0x478034
mov dword [eax], 0x753028
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x478036
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x970], eax
jne 0x478075
push 0x4b14
push 0x79ce20
push str.m_pShortcutKeyData
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
cmp edi, ebx
mov dword [ebp - 4], 0xffffffff
je 0x478257
jmp 0x478250
cmp edi, ebx
je 0x4780f1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
test eax, eax
jbe 0x4780f1
mov ecx, dword [esi + 0x970]
push edi
mov edx, dword [ecx]
call dword [edx + 0x24]
test al, al
jne 0x4780d0
push 0x4b19
push 0x79ce20
push str.m_pShortcutKeyData__Create_pRes_
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
mov ecx, dword [esi + 0x970]
cmp ecx, ebx
je 0x478245
mov eax, dword [ecx]
mov byte [ebp - 4], 1
call dword [eax]
jmp 0x47823f
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x970]
mov ebx, dword [0x7fd5f0]
push 0x7b4240
push 0x79c96c
lea edx, [ebp - 0x120]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
push edx
mov dword [ebp - 0x1c], ecx
call fcn.0070258b
mov ecx, dword [0x801a9c]
add esp, 0x10
test ecx, ecx
jne 0x478170
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x120]
push ecx
mov ecx, ebx
call dword [eax]
push eax
mov ecx, 0x801a9c
call fcn.0047bd90
mov ecx, dword [0x801a9c]
test ecx, ecx
setne al
test al, al
jne 0x478170
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x47819b
mov edx, dword [ecx]
push 0
call dword [edx]
mov ebx, dword [ebp - 0x1c]
test eax, eax
mov dword [ebx + 4], eax
je 0x47818f
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 0x4781c3
push 0x4b20
push 0x79ce20
push str.m_pShortcutKeyData__Create_Database____ID_NONE_
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x4780b5
mov eax, dword [esi + 0x970]
mov edx, dword [esi]
mov ecx, esi
mov ebx, dword [eax]
call dword [edx + 4]
mov ecx, dword [esi + 0x970]
push eax
push 1
call dword [ebx + 0x10]
mov esi, dword [esi + 0x970]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x30]
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x4781fd
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x970], ebx
cmp edi, ebx
mov dword [ebp - 4], 0xffffffff
je 0x478257
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret