Function at 0x4a4080
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004b15e0
add eax, 4
push eax
lea ecx, [ebp - 8]
call fcn.0041c880
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 0x80]
mov ecx, dword [ebp - 0x260]
mov ecx, dword [ecx + 0x80]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x4a40f4
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 4]
jge 0x4a4491
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 0x80]
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax + 0x80]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x4a4142
mov ecx, dword [ebp - 0x264]
sub ecx, 8
mov dword [ebp - 0x268], ecx
jmp 0x4a414c
mov dword [ebp - 0x268], 0
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
add ecx, 8
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x16c]
call eax
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c880
push 0
lea ecx, [ebp - 8]
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x14]
call fcn.0047e090
test eax, eax
jl 0x4a4484
mov dword [ebp - 0x1c], 0
jmp 0x4a419f
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
call edx
cmp dword [ebp - 0x1c], eax
jge 0x4a4484
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
je 0x4a41e5
mov ecx, dword [ebp - 0x26c]
sub ecx, 8
mov dword [ebp - 0x270], ecx
jmp 0x4a41ef
mov dword [ebp - 0x270], 0
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
add ecx, 8
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x30]
call eax
push eax
lea ecx, [ebp - 0x24]
call fcn.0041c8a0
push str.cityitem_weathericon
lea ecx, [ebp - 0x24]
call fcn.00430140
test eax, eax
jne 0x4a42fe
lea ecx, [ebp - 0x238]
call fcn.0041adb0
push 0
push 0x5914fc
push 0x55d44c
push 0x591308
lea ecx, [ebp - 0x248]
push ecx
call fcn.0041ca60
add esp, 0xc
push eax
lea edx, [ebp - 0x24c]
push edx
call fcn.0041ca00
add esp, 0xc
mov ecx, eax
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x238]
call fcn.0041b090
lea ecx, [ebp - 0x24c]
call fcn.0040f740
lea ecx, [ebp - 0x248]
call fcn.0040f740
cmp dword [ebp - 0x20], 0
je 0x4a429f
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x274], eax
jmp 0x4a42a9
mov dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x274]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004b15e0
add eax, 8
push ecx
mov ecx, esp
push eax
call fcn.0041c880
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x260]
call fcn.004b5a20
lea ecx, [ebp - 0x238]
call fcn.0041b520
lea ecx, [ebp - 0x238]
call fcn.0041adf0
jmp 0x4a4477
push str.cityitem_ver
lea ecx, [ebp - 0x24]
call fcn.00430140
test eax, eax
jne 0x4a4477
mov dword [ebp - 0x23c], 0
jmp 0x4a432e
mov ecx, dword [ebp - 0x23c]
add ecx, 1
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
call edx
cmp dword [ebp - 0x23c], eax
jge 0x4a4477
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x244]
mov eax, dword [edx + 0x30]
call eax
push eax
lea ecx, [ebp - 0x240]
call fcn.0041c8a0
push str.cityitem_weather
lea ecx, [ebp - 0x240]
call fcn.00430140
test eax, eax
jne 0x4a4420
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004b15e0
add eax, 0xc
push eax
push 0x565bec
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004b15e0
add eax, 0x10
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0041ca60
add esp, 0xc
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.0041ca00
add esp, 0xc
mov ecx, eax
call fcn.0041cb20
push eax
mov edx, dword [ebp - 0x244]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x244]
mov edx, dword [eax + 0x3c]
call edx
lea ecx, [ebp - 0x258]
call fcn.0040f740
lea ecx, [ebp - 0x254]
call fcn.0040f740
jmp 0x4a4467
push str.cityitem_wind
lea ecx, [ebp - 0x240]
call fcn.00430140
test eax, eax
jne 0x4a4467
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004b15e0
add eax, 0x14
mov ecx, eax
call fcn.0041cb20
push eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x244]
mov eax, dword [edx + 0x3c]
call eax
lea ecx, [ebp - 0x240]
call fcn.0040f740
jmp 0x4a431f
lea ecx, [ebp - 0x24]
call fcn.0040f740
jmp 0x4a4196
lea ecx, [ebp - 0x14]
call fcn.0040f740
jmp 0x4a40eb
mov dword [ebp - 0x25c], 1
lea ecx, [ebp - 8]
call fcn.0040f740
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret 0x10