Function at 0x4e35d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x740dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0xc0]
push edi
cmp eax, esi
mov dword [ebp - 0x20], ebx
jne 0x4e3613
push 0x81
push 0x7a9a70
push str.m_pMapSet
jmp 0x4e3672
cmp dword [ebx + 0xc4], esi
jne 0x4e362c
push 0x82
push 0x7a9a70
push str.m_setPortal
jmp 0x4e3672
cmp dword [ebx + 0xc8], esi
jne 0x4e3645
push 0x83
push 0x7a9a70
push str.m_setPassway
jmp 0x4e3672
cmp dword [ebx + 0xcc], esi
jne 0x4e365e
push 0x84
push 0x7a9a70
push str.m_pMapItemSet
jmp 0x4e3672
cmp dword [ebx + 4], esi
jne 0x4e3697
push 0x85
push 0x7a9a70
push str.m_setMapData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x79a1a4
lea eax, [ebp - 0x428]
push str.SELECT_mapdoc_FROM__s_GROUP_BY_mapdoc
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0xc
lea eax, [ebp - 0x428]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], edi
cmp edi, esi
mov dword [ebp - 4], esi
je 0x4e375b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x60]
cmp esi, eax
jae 0x4e375b
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x44]
push eax
push 0x7a9cf0
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push 1
push 0
call dword [edx + 0x44]
push eax
call fcn.00723be0
add esp, 8
test eax, eax
je 0x4e3723
mov ecx, dword [ebx + 4]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, dword [edi]
mov ecx, edi
inc esi
call dword [eax + 0x64]
jmp 0x4e36d6
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x44]
push eax
push 0x7a9cd8
call fcn.00401080
mov eax, dword [edi]
add esp, 8
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xbc]
cmp ecx, 4
jb 0x4e378a
mov eax, dword [0x7fd4fc]
mov esi, dword [0x7fd4f8]
sub eax, esi
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x4e37af
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x4e37b7
lea eax, [ecx + ecx*4]
shl eax, 5
add eax, esi
mov ecx, dword [eax + 0x1c]
mov edx, dword [0x796b24]
sub ecx, 4
lea eax, [ebp - 0x428]
push ecx
push edx
push 0x79a1a4
push str.SELECT__FROM__s_WHERE__idxserver_1__idxserver_u___mapgroup_u_ORDER_BY_id
push eax
call fcn.0070258b
mov ecx, dword [ebx + 0xbc]
add esp, 0x14
cmp ecx, 4
jb 0x4e380d
mov eax, dword [0x7fd4fc]
mov esi, dword [0x7fd4f8]
sub eax, esi
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x4e3832
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x4e383a
lea eax, [ecx + ecx*4]
shl eax, 5
add eax, esi
mov ecx, dword [eax + 0x1c]
mov edx, dword [0x796b24]
sub ecx, 4
lea eax, [ebp - 0x428]
push ecx
push edx
push 0x79a1a4
push str.SELECT__FROM__s_WHERE__idxserver_1__idxserver_u___mapgroup_u_ORDER_BY_id
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x14
lea eax, [ebp - 0x428]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov esi, eax
mov dword [ebp - 0x24], esi
xor eax, eax
mov byte [ebp - 4], 1
cmp esi, eax
je 0x4e3a0e
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
cmp dword [ebp - 0x18], eax
jae 0x4e3994
push 0x70
call fcn.00482990
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x4e38bd
mov ecx, eax
call fcn.00483010
mov edi, eax
jmp 0x4e38bf
xor edi, edi
test edi, edi
mov byte [ebp - 4], 1
je 0x4e391e
mov eax, dword [esi]
mov ebx, dword [ebx]
push 3
mov ecx, esi
call dword [eax + 0x44]
mov edx, ebx
mov ebx, dword [ebp - 0x20]
push eax
mov ecx, ebx
call dword [edx + 0x60]
test eax, eax
je 0x4e3953
push eax
mov eax, dword [ebx + 0xbc]
push esi
push eax
mov ecx, edi
call fcn.00483310
test al, al
je 0x4e3953
mov ecx, dword [ebx + 0xc0]
push edi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc ecx
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, esi
call dword [eax + 0x64]
mov edi, dword [ebp - 0x10]
jmp 0x4e388d
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0
call dword [edx + 4]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4e3ae7
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4e395f
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4e3ae7
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xbc]
cmp ecx, 4
jb 0x4e39c3
mov eax, dword [0x7fd4fc]
mov edx, dword [0x7fd4f8]
sub eax, edx
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x4e39e8
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x4e39f6
lea eax, [ecx + ecx*4]
mov ecx, dword [0x7fd4f8]
shl eax, 5
add eax, ecx
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x14]
sub ecx, 4
push ecx
push edx
push str.Load_Map__d_in_mapgroup__d.
call fcn.00402c60
add esp, 0xc
push str.cq_portal
lea eax, [ebp - 0x428]
push 0x799ea4
push eax
call fcn.0070258b
mov eax, dword [0x7fd5f0]
mov ecx, dword [ebx + 0xc4]
add esp, 0xc
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [edx + 8]
test al, al
jne 0x4e3a6e
push 0xd1
push 0x7a9a70
push str.m_setPortal__Create_szSQL__Database___
push str.IF_NOT_
push 0x793720
call fcn.00401080
add esp, 0x14
mov byte [ebp - 4], 0
test esi, esi
je 0x4e3ad5
jmp 0x4e3ace
push str.cq_passway
lea ecx, [ebp - 0x428]
push 0x799ea4
push ecx
call fcn.0070258b
mov ebx, dword [ebx + 0xc8]
mov eax, dword [0x7fd5f0]
add esp, 0xc
lea ecx, [ebp - 0x428]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
call dword [edx + 8]
test al, al
jne 0x4e3afa
push 0xd4
push 0x7a9a70
push str.m_setPassway__Create_szSQL__Database___
push str.IF_NOT_
push 0x793720
call fcn.00401080
add esp, 0x14
mov byte [ebp - 4], 0
test esi, esi
je 0x4e3ad5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x4e3ae7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test esi, esi
mov byte [ebp - 4], 0
je 0x4e3b09
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x4e3b1b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret