Function at 0x5f0c00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x749069
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
call fcn.005ea6a0
add esp, 8
test eax, eax
jne 0x5f0c5e
push esi
push edi
push 0x7c1c38
call fcn.0040a420
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push edi
mov ecx, ebx
call fcn.005ea640
test eax, eax
je 0x5f0c7f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [ebp + 0x10]
xor esi, esi
test al, al
mov dword [ebp - 0x10], esi
je 0x5f0eec
mov ecx, dword [ebx + 0x78]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push 0x79a188
lea ecx, [ebp - 0x84c]
push str.SELECT_id_FROM__s_WHERE_ownerid_u__type_d
push ecx
call fcn.0070258b
mov ecx, dword [ebx + 0x74]
add esp, 0x14
cmp ecx, 4
jb 0x5f0cde
mov eax, dword [0x7fd4fc]
mov edi, dword [0x7fd4f8]
sub eax, edi
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x5f0d03
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
jmp 0x5f0d0b
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, edi
call fcn.004619e0
mov edx, dword [eax]
lea ecx, [ebp - 0x84c]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, esi
mov dword [ebp - 4], esi
je 0x5f0d36
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0x44]
mov dword [ebp - 0x10], eax
push 0x14
call fcn.005e8d20
mov esi, eax
add esp, 4
mov dword [ebp + 0x10], esi
test esi, esi
mov byte [ebp - 4], 1
je 0x5f0d63
mov ecx, esi
call fcn.005f10b0
mov dword [esi], 0x758f50
mov dword [esi + 0x10], 0
jmp 0x5f0d65
xor esi, esi
test esi, esi
mov dword [ebp + 0x10], esi
mov byte [ebp - 4], 0
jne 0x5f0dbc
push 0xafe
push 0x7c0d90
push str.pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x5f0e5a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebx + 0x74]
cmp ebx, 4
jb 0x5f0dec
mov eax, dword [0x7fd4fc]
mov ecx, dword [0x7fd4f8]
sub eax, ecx
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jb 0x5f0e6f
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [edx]
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebp + 0x10]
push eax
call dword [ebx + 0xc]
test al, al
jne 0x5f0e7e
push 0xaff
push 0x7c0d90
push str.pData__Create_GameDataDefault____GetMagicData____idMagic_
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x5f0e5a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebx + ebx*4]
shl eax, 5
add eax, ecx
je 0x5f0e0d
lea ecx, [eax + 4]
jmp 0x5f0e0f
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x5f0e90
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x78]
mov edi, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
push 1
mov ecx, esi
call dword [edi + 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
push ecx
push 2
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
push eax
push 3
mov ecx, esi
call dword [edx + 0x18]
mov edx, dword [esi]
push 0
push 4
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push 0
push 5
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5f0fbd
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
jmp 0x5f0fd2
push 0x24
call fcn.006b7af0
add esp, 4
mov dword [ebp + 0x10], eax
cmp eax, esi
mov dword [ebp - 4], 2
je 0x5f0f0d
mov ecx, eax
call fcn.006b7c40
mov esi, eax
test esi, esi
mov dword [ebp - 4], 0xffffffff
jne 0x5f0f4e
push 0xb06
push 0x7c0d90
push str.pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x7c0d78
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
mov dword [ebp - 0x28], eax
mov edx, dword [esi]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [edx + 8]
test al, al
jne 0x5f0fb2
push 0xb0a
push 0x7c0d90
push str.pData__Create_data_
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
jmp 0x5f0e93
mov eax, dword [esi]
push 0
push 6
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x58]
mov eax, dword [esi]
push 0x7e
mov ecx, esi
call dword [eax + 0x14]
test al, 8
jne 0x5f108f
mov al, byte [ebp + 0x14]
test al, al
je 0x5f108f
lea ecx, [ebp - 0x44c]
call fcn.00673b00
mov edx, dword [esi]
mov edi, dword [ebx + 0x78]
push 4
mov ecx, esi
mov dword [ebp - 4], 3
call dword [edx + 0x14]
push eax
mov eax, dword [esi]
push 3
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push eax
push 2
mov ecx, esi
call dword [edx + 0x14]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00673be0
test eax, eax
jne 0x5f106b
push 0xb27
push 0x7c0d90
push str.msg.Create_m_pOwner__GetID____pData__GetInt_MAGICDATA_TYPE___pData__GetInt_MAGICDATA_LEVEL___pData__GetInt_MAGICDATA_EXP__
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5f107d
mov ecx, dword [ebx + 0x78]
lea eax, [ebp - 0x44c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1b0]
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0xffffffff
call fcn.00673b90
mov ebx, dword [ebx + 0xc]
push esi
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10