Function at 0x4b9a30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1ac], ecx
cmp dword [ebp - 0x1ac], 0
je 0x4b9a65
mov eax, dword [ebp - 0x1ac]
sub eax, 0x3e0
mov dword [ebp - 0x1b0], eax
jmp 0x4b9a6f
mov dword [ebp - 0x1b0], 0
mov ecx, dword [ebp - 0x1b0]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x160]
call fcn.004fc300
cmp dword [ebp - 0x10], 0
je 0x4b9a97
mov edx, dword [ebp - 0x10]
add edx, 0x18
mov dword [ebp - 0x1b4], edx
jmp 0x4b9aa1
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.00451770
lea ecx, [ebp - 0x160]
call fcn.004fcec3
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
je 0x4b9aed
mov edx, dword [ebp - 0x1b8]
sub edx, 8
mov dword [ebp - 0x1bc], edx
jmp 0x4b9af7
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 0x5656ec
lea edx, [ebp + 0x10]
push edx
push 0x5656ec
lea eax, [ebp + 0xc]
push eax
push 0x5656ec
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 0x4b9c12
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 0x4b9e33
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 0x4b9c5e
mov eax, dword [ebp - 0x1c0]
sub eax, 8
mov dword [ebp - 0x1c4], eax
jmp 0x4b9c68
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.00430140
test eax, eax
jne 0x4b9cfd
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x178]
call fcn.0041c880
push 0x55b428
lea ecx, [ebp - 0x178]
call fcn.0047e360
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 0x4b9e23
push str.cityitem_weathericon
lea ecx, [ebp - 0x174]
call fcn.00430140
test eax, eax
jne 0x4b9d29
push 0x554518
mov ecx, dword [ebp - 0x170]
add ecx, 8
call fcn.004daed9
jmp 0x4b9e23
push str.cityitem_ver
lea ecx, [ebp - 0x174]
call fcn.00430140
test eax, eax
jne 0x4b9e23
mov dword [ebp - 0x17c], 0
jmp 0x4b9d5c
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 0x4b9e23
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.00430140
test eax, eax
jne 0x4b9de7
push 0x554518
mov ecx, dword [ebp - 0x184]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x184]
mov eax, dword [edx + 0x3c]
call eax
jmp 0x4b9e13
push str.cityitem_wind
lea ecx, [ebp - 0x180]
call fcn.00430140
test eax, eax
jne 0x4b9e13
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 0x4b9d4d
lea ecx, [ebp - 0x174]
call fcn.0040f740
jmp 0x4b9c03
mov ecx, dword [ebp - 0x1ac]
cmp dword [ecx + 0x80], 0
je 0x4b9eab
cmp dword [ebp - 8], 0
je 0x4b9e56
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 0x1c8], edx
jmp 0x4b9e60
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 0x4b9eef
mov ecx, dword [ebp - 0x188]
add ecx, 1
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x188]
cmp edx, dword [ebp - 4]
jge 0x4b9f9c
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 0x564e78
lea edx, [ebp - 0x18c]
push edx
call fcn.004beff0
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 0x4b9ee0
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.0046b160
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.00512610
mov esp, ebp
pop ebp
ret 0x10