Function at 0x461350
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x58], 0
jne 0x4617fe
push ebx
mov ebx, dword [edi + 0xb8]
test ebx, ebx
jne 0x46138b
movsd xmm0, qword [0x4cf6d8]
movsd qword [edi + 0x60], xmm0
call fcn.00461250
xorps xmm1, xmm1
movsd qword [edi + 0x50], xmm1
jmp 0x4617c3
push esi
mov esi, dword [ebx + 0x20]
mov ecx, str.total
add esi, 8
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4613c0
test dl, dl
je 0x4613bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4613c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4613a0
xor eax, eax
jmp 0x4613c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4616fc
mov ecx, str.texpack
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4613f4
test dl, dl
je 0x4613f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4613f4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4613d4
xor eax, eax
jmp 0x4613f9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x461422
push str.subdef
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d20]
push eax
call fcn.0048a7b0
jmp 0x4616fc
mov ecx, str.texture
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461450
test dl, dl
je 0x46144c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461450
add eax, 2
add ecx, 2
test dl, dl
jne 0x461430
xor eax, eax
jmp 0x461455
sbb eax, eax
or eax, 1
test eax, eax
jne 0x461480
push str.file
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d20]
push 0
push eax
call fcn.0048a390
jmp 0x4616fc
mov ecx, 0x4d21e0
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4614a7
test dl, dl
je 0x4614a3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4614a7
add eax, 2
add ecx, 2
test dl, dl
jne 0x461487
xor eax, eax
jmp 0x4614ac
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4614d5
push str.file
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d20]
push eax
call fcn.0048a3f0
jmp 0x4616fc
mov ecx, str.bpsparam
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461500
test dl, dl
je 0x4614fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461500
add eax, 2
add ecx, 2
test dl, dl
jne 0x4614e0
xor eax, eax
jmp 0x461505
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46152e
push str.file
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d20]
push eax
call fcn.0048a150
jmp 0x4616fc
mov ecx, str.cpsparam
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461555
test dl, dl
je 0x461551
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461555
add eax, 2
add ecx, 2
test dl, dl
jne 0x461535
xor eax, eax
jmp 0x46155a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x461583
push str.file
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d20]
push eax
call fcn.0048a1a0
jmp 0x4616fc
mov ecx, str.psparam
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4615b0
test dl, dl
je 0x4615ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4615b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x461590
xor eax, eax
jmp 0x4615b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4615de
push str.file
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d20]
push eax
call fcn.0048a2e0
jmp 0x4616fc
mov ecx, str.bytes
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461605
test dl, dl
je 0x461601
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461605
add eax, 2
add ecx, 2
test dl, dl
jne 0x4615e5
xor eax, eax
jmp 0x46160a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x461635
push str.file
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d20]
push 0
push eax
call fcn.0048a330
jmp 0x4616fc
mov ecx, str.sound
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461660
test dl, dl
je 0x46165c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461660
add eax, 2
add ecx, 2
test dl, dl
jne 0x461640
xor eax, eax
jmp 0x461665
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46168b
push str.file
mov ecx, ebx
call fcn.0049b170
test eax, eax
je 0x4616fc
mov ecx, dword [0x5c1d2c]
push eax
call fcn.004965f0
jmp 0x4616fc
mov ecx, str.fonts
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4616b2
test dl, dl
je 0x4616ae
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4616b2
add eax, 2
add ecx, 2
test dl, dl
jne 0x461692
xor eax, eax
jmp 0x4616b7
sbb eax, eax
or eax, 1
test eax, eax
je 0x4616fc
mov eax, str.city
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x4616e0
test cl, cl
je 0x4616dc
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x4616e0
add esi, 2
add eax, 2
test cl, cl
jne 0x4616c0
xor eax, eax
jmp 0x4616e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4616fc
mov dword [ebp - 4], eax
mov ecx, ebx
lea eax, [ebp - 4]
push eax
push str.phase
call fcn.0049c680
mov esi, dword [edi + 0xb8]
mov ecx, str.total
mov eax, dword [esi + 0x20]
add eax, 8
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461730
test dl, dl
je 0x46172c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461730
add eax, 2
add ecx, 2
test dl, dl
jne 0x461710
xor eax, eax
jmp 0x461735
sbb eax, eax
or eax, 1
test eax, eax
je 0x46179b
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x4d222c
mov ecx, esi
call fcn.0049c680
mov eax, dword [ebp - 4]
add dword [edi + 0x6c], eax
movd xmm1, dword [edi + 0x6c]
movd xmm0, dword [edi + 0x68]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movsd xmm0, qword [0x4cf6d8]
comisd xmm1, xmm0
movsd qword [edi + 0x60], xmm1
ja 0x461793
xorps xmm2, xmm2
comisd xmm2, xmm1
jbe 0x46178d
movaps xmm1, xmm2
jmp 0x461796
comisd xmm1, xmm0
jbe 0x461796
movaps xmm1, xmm0
movsd qword [edi + 0x60], xmm1
mov ecx, dword [edi + 0xb8]
call fcn.0049bf60
mov dword [edi + 0xb8], eax
pop esi
test eax, eax
jne 0x4617c0
mov eax, dword [0x5c1d08]
push 0
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
xorps xmm1, xmm1
movsd xmm0, qword [0x4cf6d8]
sub esp, 0x20
mov ecx, dword [edi + 0xbc]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
push 0x16
call fcn.00484c60
cmp byte [edi + 0x58], 0
pop ebx
je 0x461838
movsd xmm1, qword [edi + 0x50]
xorps xmm2, xmm2
comisd xmm1, xmm2
jbe 0x461838
movss xmm0, dword [ebp + 8]
cvtps2pd xmm0, xmm0
subsd xmm1, xmm0
comisd xmm2, xmm1
movsd qword [edi + 0x50], xmm1
jb 0x461838
mov ecx, dword [edi + 8]
push 1
push dword [edi + 0x10]
call fcn.004a50d0
xorps xmm1, xmm1
movsd qword [edi + 0x50], xmm1
pop edi
mov esp, ebp
pop ebp
ret 8