Function at 0x492400
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580645
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5d4090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
lea edx, [ebp + 0xc]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040b930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmovae ecx, edi
push 0xd
push str.RAINFALL_CORR
mov edx, ebx
call fcn.004114b0
add esp, 8
test eax, eax
jne 0x492481
mov eax, dword [ebp + 8]
mov bl, 1
movsd xmm0, qword [eax]
movsd qword [esi + 0x298], xmm0
jmp 0x492815
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, 0xd
mov esi, ebx
cmovae ecx, edi
mov edx, str.SNOWFALL_CORR
cmp ebx, eax
cmova esi, eax
sub esi, 4
jb 0x4924b2
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4924b7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4924a1
cmp esi, 0xfffffffc
je 0x4924eb
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4924e4
cmp esi, 0xfffffffd
je 0x4924eb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4924e4
cmp esi, 0xfffffffe
je 0x4924eb
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4924e4
cmp esi, 0xffffffff
je 0x4924eb
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4924eb
sbb eax, eax
or eax, 1
jmp 0x4924ed
xor eax, eax
test eax, eax
jne 0x492511
cmp ebx, 0xd
jb 0x492511
ja 0x492511
mov eax, dword [ebp + 8]
mov bl, 1
movsd xmm0, qword [eax]
mov eax, dword [ebp - 0x30]
movsd qword [eax + 0x2a0], xmm0
jmp 0x492815
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, 9
mov esi, ebx
cmovae ecx, edi
mov edx, str.ELEVATION
cmp ebx, eax
cmova esi, eax
mov dword [ebp - 0x34], esi
sub esi, 4
jb 0x492545
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x49254a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x492534
cmp esi, 0xfffffffc
je 0x49257e
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x492577
cmp esi, 0xfffffffd
je 0x49257e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x492577
cmp esi, 0xfffffffe
je 0x49257e
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x492577
cmp esi, 0xffffffff
je 0x49257e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x49257e
sbb eax, eax
or eax, 1
jmp 0x492580
xor eax, eax
test eax, eax
jne 0x4925a1
cmp ebx, 9
jb 0x4925a1
ja 0x4925a1
mov eax, dword [ebp + 8]
mov bl, 1
movsd xmm0, qword [eax]
mov eax, dword [ebp - 0x30]
movsd qword [eax + 0x38], xmm0
jmp 0x492815
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, 0xf
mov esi, ebx
cmovae ecx, edi
mov edx, str.CLOUD_MIN_RANGE
cmp ebx, eax
cmova esi, eax
mov edi, esi
sub edi, 4
jb 0x4925d4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4925d9
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4925c3
cmp edi, 0xfffffffc
je 0x49260d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x492606
cmp edi, 0xfffffffd
je 0x49260d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x492606
cmp edi, 0xfffffffe
je 0x49260d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x492606
cmp edi, 0xffffffff
je 0x49260d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x49260d
sbb eax, eax
or eax, 1
jmp 0x49260f
xor eax, eax
test eax, eax
jne 0x492636
cmp ebx, 0xf
jb 0x492636
ja 0x492636
mov eax, dword [ebp + 8]
mov bl, 1
mov edi, dword [ebp - 0x2c]
movsd xmm0, qword [eax]
mov eax, dword [ebp - 0x30]
movsd qword [eax + 0x2a8], xmm0
jmp 0x492815
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
mov edx, str.CLOUD_MAX_RANGE
cmovae ecx, edi
sub esi, 4
jb 0x492661
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x492666
add ecx, 4
add edx, 4
sub esi, 4
jae 0x492650
cmp esi, 0xfffffffc
je 0x49269a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x492693
cmp esi, 0xfffffffd
je 0x49269a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x492693
cmp esi, 0xfffffffe
je 0x49269a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x492693
cmp esi, 0xffffffff
je 0x49269a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x49269a
sbb eax, eax
or eax, 1
jmp 0x49269c
xor eax, eax
test eax, eax
jne 0x4926c0
cmp ebx, 0xf
jb 0x4926c0
ja 0x4926c0
mov eax, dword [ebp + 8]
mov bl, 1
movsd xmm0, qword [eax]
mov eax, dword [ebp - 0x30]
movsd qword [eax + 0x2b0], xmm0
jmp 0x492815
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, 8
mov esi, ebx
cmovae ecx, edi
mov edx, str.LATITUDE
cmp ebx, eax
cmova esi, eax
sub esi, 4
jb 0x4926f1
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4926f6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4926e0
cmp esi, 0xfffffffc
je 0x49272a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x492723
cmp esi, 0xfffffffd
je 0x49272a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x492723
cmp esi, 0xfffffffe
je 0x49272a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x492723
cmp esi, 0xffffffff
je 0x49272a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x49272a
sbb eax, eax
or eax, 1
jmp 0x49272c
xor eax, eax
test eax, eax
jne 0x49274d
cmp ebx, 8
jb 0x49274d
ja 0x49274d
mov eax, dword [ebp + 8]
mov bl, 1
movsd xmm0, qword [eax]
mov eax, dword [ebp - 0x30]
movsd qword [eax + 0x18], xmm0
jmp 0x492815
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov edx, str.LONGITUDE
cmovae ecx, edi
sub esi, 4
jb 0x492775
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x49277a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x492764
cmp esi, 0xfffffffc
je 0x4927ae
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4927a7
cmp esi, 0xfffffffd
je 0x4927ae
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4927a7
cmp esi, 0xfffffffe
je 0x4927ae
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4927a7
cmp esi, 0xffffffff
je 0x4927ae
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4927ae
sbb eax, eax
or eax, 1
jmp 0x4927b0
xor eax, eax
test eax, eax
jne 0x4927ce
cmp ebx, 9
jb 0x4927ce
ja 0x4927ce
mov eax, dword [ebp + 8]
mov bl, 1
movsd xmm0, qword [eax]
mov eax, dword [ebp - 0x30]
movsd qword [eax + 0x20], xmm0
jmp 0x492815
mov edx, dword [ebp + 0x1c]
sub esp, 0x18
mov eax, 0x7fffffff
mov ecx, esp
sub eax, edx
mov dword [ebp - 0x34], ecx
cmp eax, 0x36
jb 0x4928a6
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push edx
cmovae eax, dword [ebp + 0xc]
push eax
push 0x36
push str.CGauge::SetGaugeProperty:_unrecognized_gauge_property
push ecx
push dword [ebp - 0x34]
call fcn.00412290
xor cl, cl
call fcn.0040bfd0
mov edi, dword [ebp - 0x2c]
add esp, 0x18
xor bl, bl
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x492844
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x49283a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4928ab
push ecx
push edi
call fcn.0051faa7
add esp, 8
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x492886
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49287c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4928ab
push ecx
push edx
call fcn.0051faa7
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051fa69
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00401560
call fcn.0052eb21
int3