Function at 0x4ca540
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5c0c70]
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.004d7a60
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 0x4ca5b4
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 4]
jge 0x4ca951
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 0x4ca602
mov ecx, dword [ebp - 0x264]
sub ecx, 8
mov dword [ebp - 0x268], ecx
jmp 0x4ca60c
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.004a5a90
test eax, eax
jl 0x4ca944
mov dword [ebp - 0x1c], 0
jmp 0x4ca65f
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 0x4ca944
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 0x4ca6a5
mov ecx, dword [ebp - 0x26c]
sub ecx, 8
mov dword [ebp - 0x270], ecx
jmp 0x4ca6af
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.00453fe0
test eax, eax
jne 0x4ca7be
lea ecx, [ebp - 0x238]
call fcn.0041adb0
push 0
push 0x5c2924
push 0x58bcec
push 0x5c272c
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 0x4ca75f
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x274], eax
jmp 0x4ca769
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.004d7a60
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.004dd910
lea ecx, [ebp - 0x238]
call fcn.0041b520
lea ecx, [ebp - 0x238]
call fcn.0041adf0
jmp 0x4ca937
push str.cityitem_ver
lea ecx, [ebp - 0x24]
call fcn.00453fe0
test eax, eax
jne 0x4ca937
mov dword [ebp - 0x23c], 0
jmp 0x4ca7ee
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 0x4ca937
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.00453fe0
test eax, eax
jne 0x4ca8e0
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004d7a60
add eax, 0xc
push eax
push 0x5945b4
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004d7a60
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 0x4ca927
push 0x594598
lea ecx, [ebp - 0x240]
call fcn.00453fe0
test eax, eax
jne 0x4ca927
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x260]
add ecx, 0x8c
call fcn.004d7a60
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 0x4ca7df
lea ecx, [ebp - 0x24]
call fcn.0040f740
jmp 0x4ca656
lea ecx, [ebp - 0x14]
call fcn.0040f740
jmp 0x4ca5ab
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.0053ea90
mov esp, ebp
pop ebp
ret 0x10