Function at 0x487f50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
mov dword [esi + 0x50], eax
jne 0x487f7f
push 0x601
push 0x7a3484
push str.pInfo
jmp 0x4883e4
call fcn.00483670
mov ebx, eax
test ebx, ebx
je 0x488134
mov ecx, dword [esi + 0x50]
cmp ecx, 4
jb 0x487fbc
mov edx, dword [0x7fd4fc]
mov eax, dword [0x7fd4f8]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x4880dc
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 [ecx]
call dword [edx + 0x24]
push eax
mov ecx, ebx
call fcn.00482c50
test al, al
je 0x488134
mov dword [esi + 0x24], ebx
mov eax, dword [ebx]
push 0x10
push edi
push 1
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x18]
push eax
push 0x11
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x1c]
push eax
push 6
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x10]
push eax
push 3
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x14]
push eax
push 4
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x20]
push eax
push 7
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x24]
push eax
push 0x12
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x28]
push eax
push 0x13
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x2c]
push eax
push 0x14
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x30]
push eax
push 0xc
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x34]
push eax
push 0xd
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x38]
push eax
push 0xe
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edi + 0x3c]
push eax
push 0xf
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edi + 0x40]
push eax
push 0x10
call dword [edx + 0xc]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
call dword [edx + 0x18]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4880f8
push 0x617
push 0x7a3484
push str.idMap___ID_NONE
jmp 0x4883e4
lea eax, [ecx + ecx*4]
mov ecx, dword [0x7fd4f8]
shl eax, 5
add eax, ecx
je 0x487fdd
lea ecx, [eax + 4]
jmp 0x487fdf
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x34], eax
mov edi, dword [0x7fd5e8]
push 3
mov eax, dword [ecx]
mov ebx, dword [edi]
call dword [eax + 4]
push eax
mov ecx, edi
call dword [ebx + 0x60]
xor ebx, ebx
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x48813f
mov ecx, dword [esi + 0x24]
push 3
mov edx, dword [ecx]
call dword [edx + 4]
push eax
push 0x7a3a90
call fcn.00401080
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
mov ecx, eax
mov eax, 0x38e38e39
dec ecx
lea edi, [esi + 0xc]
imul ecx
sar edx, 2
mov eax, edx
mov ecx, edi
shr eax, 0x1f
lea edx, [edx + eax + 1]
push edx
call fcn.0048aa20
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
mov dword [ebp + 0xc], ebx
shr ecx, 0x1f
add edx, ecx
je 0x488255
mov dword [ebp - 4], ebx
jmp 0x48818f
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, eax
mov eax, 0x38e38e39
dec ecx
imul ecx
sar edx, 2
mov eax, edx
mov ecx, ebx
shr eax, 0x1f
lea edx, [edx + eax + 1]
mov eax, dword [edi]
push edx
add ecx, eax
call fcn.0048ac70
mov ecx, dword [edi]
mov eax, 0x2aaaaaab
add ebx, ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
sub ecx, edx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x488226
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx]
add ecx, edx
call fcn.006584a0
mov ebx, dword [ebp - 0xc]
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add ebx, 0xc
inc eax
mov dword [ebp - 0xc], ebx
lea ebx, [edx + ecx]
mov dword [ebp - 8], eax
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
sub ecx, edx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp - 8]
cmp eax, edx
jb 0x4881e4
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
add eax, 0xc
mov dword [ebp - 4], eax
sub ecx, edx
mov eax, 0x2aaaaaab
mov ebx, dword [ebp + 0xc]
imul ecx
sar edx, 1
mov ecx, edx
inc ebx
shr ecx, 0x1f
add edx, ecx
mov dword [ebp + 0xc], ebx
cmp ebx, edx
jb 0x48818c
push 1
call fcn.0048ada0
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x48827a
push 0x635
push 0x7a3484
push str.m_setRegion
jmp 0x4883e4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push eax
push str.cq_region
lea eax, [ebp - 0x410]
push str.SELECT__FROM__s_WHERE_mapid_u
push eax
call fcn.0070258b
mov eax, dword [0x7fd5f0]
mov ecx, dword [esi + 0x18]
add esp, 0x10
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [edx + 8]
test al, al
jne 0x4882e0
push 0x638
push 0x7a3484
push str.m_setRegion__Create_szSQL__Database___
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x18]
xor edi, edi
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jle 0x488314
mov ecx, dword [esi + 0x18]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x488307
mov edx, dword [eax]
push 2
mov ecx, eax
call dword [edx + 8]
or dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x18]
inc edi
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp edi, eax
jl 0x4882ee
push 1
call fcn.0048ae40
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
jne 0x488339
push 0x645
push 0x7a3484
push str.m_setWeather
jmp 0x4883e4
mov ecx, dword [esi + 0x18]
xor edi, edi
mov dword [ebp + 0xc], edi
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jle 0x4883be
mov ecx, dword [esi + 0x18]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
je 0x4883ab
mov edx, dword [edi]
push 2
mov ecx, edi
call dword [edx + 8]
test al, 2
je 0x4883ab
call fcn.00483690
mov ebx, eax
test ebx, ebx
je 0x4883d5
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
push edi
call fcn.00658100
test al, al
jne 0x4883ca
push 0x64d
push 0x7a3484
push str.pWeather__Create_pData__idProcess_
push str.IF_OK
push 0x793720
call fcn.00401080
mov eax, dword [ebx]
add esp, 0x14
mov ecx, ebx
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov edi, dword [ebp + 0xc]
inc edi
mov edx, dword [ecx]
mov dword [ebp + 0xc], edi
call dword [edx + 0x10]
cmp edi, eax
jl 0x48834a
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x20]
push ebx
mov edx, dword [ecx]
call dword [edx + 0xc]
jmp 0x4883ab
push 0x64c
push 0x7a3484
push str.pWeather
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 8