Function at 0x4e4000
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1ac], ecx
cmp dword [ebp - 0x1ac], 0
je 0x4e4035
mov eax, dword [ebp - 0x1ac]
sub eax, 0x3e0
mov dword [ebp - 0x1b0], eax
jmp 0x4e403f
mov dword [ebp - 0x1b0], 0
mov ecx, dword [ebp - 0x1b0]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x160]
call fcn.00528631
cmp dword [ebp - 0x10], 0
je 0x4e4067
mov edx, dword [ebp - 0x10]
add edx, 0x18
mov dword [ebp - 0x1b4], edx
jmp 0x4e4071
mov dword [ebp - 0x1b4], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
push 0
push ecx
mov ecx, esp
push str.IDX_OTHERCITYITEM
call fcn.00475860
lea ecx, [ebp - 0x160]
call fcn.005291f4
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
je 0x4e40bd
mov edx, dword [ebp - 0x1b8]
sub edx, 8
mov dword [ebp - 0x1bc], edx
jmp 0x4e40c7
mov dword [ebp - 0x1bc], 0
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x168]
call fcn.0040ee90
lea ecx, [ebp + 0x14]
push ecx
push 0x594594
lea edx, [ebp + 0x10]
push edx
push 0x594594
lea eax, [ebp + 0xc]
push eax
push 0x594594
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x194]
push edx
call fcn.0041ca60
add esp, 0xc
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.0041ca00
add esp, 0xc
push eax
lea ecx, [ebp - 0x19c]
push ecx
call fcn.0041ca60
add esp, 0xc
push eax
lea edx, [ebp - 0x1a0]
push edx
call fcn.0041ca00
add esp, 0xc
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041ca60
add esp, 0xc
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.0041ca00
add esp, 0xc
mov ecx, eax
call fcn.0041cb20
push eax
mov ecx, dword [ebp - 8]
add ecx, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
mov edx, dword [eax + 0x170]
call edx
lea ecx, [ebp - 0x1a8]
call fcn.0040f740
lea ecx, [ebp - 0x1a4]
call fcn.0040f740
lea ecx, [ebp - 0x1a0]
call fcn.0040f740
lea ecx, [ebp - 0x19c]
call fcn.0040f740
lea ecx, [ebp - 0x198]
call fcn.0040f740
lea ecx, [ebp - 0x194]
call fcn.0040f740
lea ecx, [ebp - 0x14]
call fcn.0040ee90
lea ecx, [ebp - 0xc]
call fcn.0040ee90
mov dword [ebp - 0x16c], 0
jmp 0x4e41e2
mov eax, dword [ebp - 0x16c]
add eax, 1
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebp - 0x16c], eax
jge 0x4e4403
mov ecx, dword [ebp - 0x16c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
je 0x4e422e
mov eax, dword [ebp - 0x1c0]
sub eax, 8
mov dword [ebp - 0x1c4], eax
jmp 0x4e4238
mov dword [ebp - 0x1c4], 0
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x170], ecx
mov ecx, dword [ebp - 0x170]
add ecx, 8
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 8]
mov edx, dword [eax + 0x30]
call edx
push eax
lea ecx, [ebp - 0x174]
call fcn.0041c8a0
push str.cityitem_cityname
lea ecx, [ebp - 0x174]
call fcn.00453fe0
test eax, eax
jne 0x4e42cd
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x178]
call fcn.0041c880
push 0x589ad0
lea ecx, [ebp - 0x178]
call fcn.004a5d60
lea ecx, [ebp - 0x178]
call fcn.0041cb20
push eax
mov ecx, dword [ebp - 0x170]
add ecx, 8
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 8]
mov edx, dword [eax + 0x3c]
call edx
lea ecx, [ebp - 0x178]
call fcn.0040f740
jmp 0x4e43f3
push str.cityitem_weathericon
lea ecx, [ebp - 0x174]
call fcn.00453fe0
test eax, eax
jne 0x4e42f9
push 0x582b94
mov ecx, dword [ebp - 0x170]
add ecx, 8
call fcn.005072b3
jmp 0x4e43f3
push str.cityitem_ver
lea ecx, [ebp - 0x174]
call fcn.00453fe0
test eax, eax
jne 0x4e43f3
mov dword [ebp - 0x17c], 0
jmp 0x4e432c
mov eax, dword [ebp - 0x17c]
add eax, 1
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x170]
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebp - 0x17c], eax
jge 0x4e43f3
mov ecx, dword [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x170]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x184]
mov eax, dword [edx + 0x30]
call eax
push eax
lea ecx, [ebp - 0x180]
call fcn.0041c8a0
push str.cityitem_weather
lea ecx, [ebp - 0x180]
call fcn.00453fe0
test eax, eax
jne 0x4e43b7
push 0x582b94
mov ecx, dword [ebp - 0x184]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x184]
mov eax, dword [edx + 0x3c]
call eax
jmp 0x4e43e3
push 0x594598
lea ecx, [ebp - 0x180]
call fcn.00453fe0
test eax, eax
jne 0x4e43e3
push str.ck_W
mov ecx, dword [ebp - 0x184]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x184]
mov eax, dword [edx + 0x3c]
call eax
lea ecx, [ebp - 0x180]
call fcn.0040f740
jmp 0x4e431d
lea ecx, [ebp - 0x174]
call fcn.0040f740
jmp 0x4e41d3
mov ecx, dword [ebp - 0x1ac]
cmp dword [ecx + 0x80], 0
je 0x4e447b
cmp dword [ebp - 8], 0
je 0x4e4426
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 0x1c8], edx
jmp 0x4e4430
mov dword [ebp - 0x1c8], 0
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 0x80]
mov edx, dword [ebp - 0x1ac]
mov eax, dword [edx + 0x80]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
sub eax, 1
push eax
mov ecx, dword [ebp - 0x1c8]
push ecx
mov edx, dword [ebp - 0x1ac]
mov eax, dword [edx + 0x80]
mov ecx, dword [ebp - 0x1ac]
mov ecx, dword [ecx + 0x80]
mov edx, dword [eax]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x80]
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 0x80]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x161], 0
mov dword [ebp - 0x188], 0
jmp 0x4e44bf
mov ecx, dword [ebp - 0x188]
add ecx, 1
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x188]
cmp edx, dword [ebp - 4]
jge 0x4e456c
lea ecx, [ebp - 0x18c]
call fcn.0040ee90
movzx eax, byte [ebp - 0x161]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x161], al
movzx ecx, byte [ebp - 0x161]
neg ecx
sbb ecx, ecx
neg ecx
push ecx
push 0x593da0
lea edx, [ebp - 0x18c]
push edx
call fcn.004ea900
add esp, 0xc
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x80]
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 0x80]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x1cc], eax
lea ecx, [ebp - 0x18c]
call fcn.0041cb20
push eax
mov ecx, dword [ebp - 0x1cc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1cc]
mov eax, dword [edx + 0x84]
call eax
lea ecx, [ebp - 0x18c]
call fcn.0040f740
jmp 0x4e44b0
lea ecx, [ebp - 0xc]
call fcn.0040f740
lea ecx, [ebp - 0x14]
call fcn.0040f740
lea ecx, [ebp - 0x168]
call fcn.0040f740
lea ecx, [ebp - 0x160]
call fcn.0048ffb0
lea ecx, [ebp + 8]
call fcn.0040f740
lea ecx, [ebp + 0xc]
call fcn.0040f740
lea ecx, [ebp + 0x10]
call fcn.0040f740
lea ecx, [ebp + 0x14]
call fcn.0040f740
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret 0x10