Function at 0x422516
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.0040123f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x42285b
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.method
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x4c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42259a
push ebx
call fcn.00497d55
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.Emulation.setGeolocationOverride
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x44]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4225cf
push ebx
call fcn.00497d55
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.sessionId
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x4c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x422604
push ebx
call fcn.00497d55
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x44]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.params
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x4c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x422655
push ebx
call fcn.00497d55
add esp, 4
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.accuracy
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x4c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x422697
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00401258
mov eax, 0
cmp eax, ecx
jl 0x4226c1
push 0x1aa
push 0x403206b
push 1
call fcn.00497d67
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx + 4]
push dword [ebx]
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x3c]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.latitude
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x4c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x422718
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00401258
mov eax, 0
cmp eax, ecx
jl 0x422742
push 0x1ff
push 0x403206b
push 1
call fcn.00497d67
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx + 4]
push dword [ebx]
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x3c]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.longitude
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x4c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x422799
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00401258
mov eax, 0
cmp eax, ecx
jl 0x4227c3
push 0x255
push 0x403206b
push 1
call fcn.00497d67
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x2c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx + 4]
push dword [ebx]
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x3c]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x50]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x50]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422847
push ebx
call fcn.00497d55
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004206af
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42286b
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42287b
push ebx
call fcn.00497d55
add esp, 4
mov esp, ebp
pop ebp
ret 0x20