Function at 0x483310
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test ebx, ebx
mov edi, ecx
jne 0x483339
push 0xbe
push 0x7a3484
push str.pMapData
jmp 0x48362a
mov eax, dword [ebp + 8]
mov dword [edi + 0x50], eax
call fcn.00483670
mov esi, eax
test esi, esi
je 0x48363c
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00482c50
test al, al
je 0x48363c
mov dword [edi + 0x28], ebx
mov dword [edi + 0x24], esi
mov edx, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x34], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
mov eax, 0x38e38e39
dec ecx
lea esi, [edi + 0xc]
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx + 1]
mov ecx, esi
push edx
call fcn.0048aa20
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
mov dword [ebp + 0x10], ebx
shr eax, 0x1f
add edx, eax
je 0x48348b
mov dword [ebp + 0xc], ebx
jmp 0x4833c5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 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 [esi]
push edx
add ecx, eax
call fcn.0048ac70
mov ecx, dword [esi]
mov eax, 0x2aaaaaab
add ebx, ecx
mov dword [ebp - 4], 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 0x48345c
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebx]
add ecx, edx
call fcn.006584a0
mov ebx, dword [ebp - 8]
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add ebx, 0xc
inc eax
mov dword [ebp - 8], ebx
lea ebx, [edx + ecx]
mov dword [ebp - 4], 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 - 4]
cmp eax, edx
jb 0x48341a
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add eax, 0xc
mov dword [ebp + 0xc], eax
sub ecx, edx
mov eax, 0x2aaaaaab
mov ebx, dword [ebp + 0x10]
imul ecx
sar edx, 1
mov ecx, edx
inc ebx
shr ecx, 0x1f
add edx, ecx
mov dword [ebp + 0x10], ebx
cmp ebx, edx
jb 0x4833c2
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [edi + 0x28]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
imul eax, esi
push eax
push 1
mov dword [edi + 0x30], eax
call fcn.00704199
add esp, 8
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x4834c9
push 0xd6
push 0x7a3484
push str.m_pDataEx
jmp 0x48362a
push 1
call fcn.0048ada0
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
jne 0x4834ee
push 0xd9
push 0x7a3484
push str.m_setRegion
jmp 0x48362a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push eax
push str.cq_region
lea eax, [ebp - 0x408]
push str.SELECT__FROM__s_WHERE_mapid_u
push eax
call fcn.0070258b
mov eax, dword [0x7fd5f0]
mov ecx, dword [edi + 0x18]
add esp, 0x10
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [edx + 8]
test al, al
je 0x48363c
mov ecx, dword [edi + 0x18]
xor esi, esi
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jle 0x483560
mov ecx, dword [edi + 0x18]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x483553
mov edx, dword [eax]
push 2
mov ecx, eax
call dword [edx + 8]
or dword [edi + 0x1c], eax
mov ecx, dword [edi + 0x18]
inc esi
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp esi, eax
jl 0x48353a
push 1
call fcn.0048ae40
add esp, 4
mov dword [edi + 0x20], eax
test eax, eax
jne 0x483585
push 0xe9
push 0x7a3484
push str.m_setWeather
jmp 0x48362a
mov ecx, dword [edi + 0x18]
xor esi, esi
mov dword [ebp + 0x10], esi
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jle 0x483647
mov ecx, dword [edi + 0x18]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, eax
test esi, esi
je 0x4835fb
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 8]
test al, 2
je 0x4835fb
call fcn.00483690
mov ebx, eax
test ebx, ebx
je 0x48361b
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
push esi
call fcn.00658100
test al, al
jne 0x483610
push 0xf1
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 [edi + 0x18]
mov esi, dword [ebp + 0x10]
inc esi
mov edx, dword [ecx]
mov dword [ebp + 0x10], esi
call dword [edx + 0x10]
cmp esi, eax
jl 0x48359a
jmp 0x483647
mov ecx, dword [edi + 0x20]
push ebx
mov edx, dword [ecx]
call dword [edx + 0xc]
jmp 0x4835fb
push 0xf0
push 0x7a3484
push str.pWeather
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.007028fe
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov al, 1
mov dword [edi + 0x68], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc