Function at 0x490780
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5687d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1d0], esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c8], ebx
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 0x1cc], 0
call fcn.0045abd0
mov ecx, edi
call fcn.0045abd0
push 0
mov ecx, esi
call fcn.004948e0
test eax, eax
je 0x490be1
push str.browser.search.selectedEngine
lea ecx, [ebp - 0x1c4]
call fcn.0045a3a0
push ebx
lea eax, [ebp - 0x1c4]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00494750
mov edx, dword [ebp - 0x1c4]
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0x1bd]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x490849
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1bd], 0
je 0x49085d
mov ecx, dword [ebp - 0x1c8]
call fcn.0045abd0
push str.browser.search.defaultenginename
lea ecx, [ebp - 0x1c4]
call fcn.0045a3a0
push edi
lea eax, [ebp - 0x1c4]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00494750
mov edx, dword [ebp - 0x1c4]
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
sete byte [ebp - 0x1bd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4908b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1bd], 0
je 0x490a0c
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4908db
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c8], eax
push str.browser.search.countryCode
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], 2
call fcn.0045a3a0
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1cc], 1
push eax
mov ecx, esi
call fcn.00494750
mov esi, dword [ebp - 0x1c8]
test eax, eax
je 0x49093c
cmp dword [esi - 0xc], 0
mov byte [ebp - 0x1bd], 1
jne 0x490943
mov byte [ebp - 0x1bd], 0
mov edx, dword [ebp - 0x1c4]
mov ecx, ebx
add edx, 0xfffffff0
mov dword [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x490969
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1bd], 0
je 0x4909df
push str.browser.search.defaultenginename
lea ecx, [ebp - 0x1c4]
call fcn.0045a3a0
push 1
push 0x57ace8
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 4
call fcn.00472540
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c4]
push esi
call fcn.00472540
mov ecx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1c4]
push edi
push eax
call fcn.00494750
mov edx, dword [ebp - 0x1c4]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4909e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4909e6
mov ecx, edi
call fcn.0045abd0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x490a06
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1d0]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x490bdc
lea eax, [ebp - 0x1cc]
mov ecx, esi
push eax
call fcn.0048e7f0
mov esi, dword [ebp - 0x1cc]
mov dword [ebp - 4], 5
lea eax, [esi - 0x10]
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c8], eax
push 0x13
push str._search.json.mozlz4
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 6
call fcn.00472540
mov edi, dword [ebp - 0x1c8]
lea eax, [ebp - 0xa8]
push 0xfde9
push edi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], eax
call fcn.00491750
push 0xfde9
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 7
push esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x130], eax
call fcn.00491750
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 8
call fcn.00403ed0
push dword [ebp - 0x130]
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 9
push dword [ebp - 0xac]
call fcn.00404d70
test al, al
je 0x490b55
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00494710
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x490aef
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.0048cac0
mov ecx, dword [ebp - 0x1d4]
push eax
mov byte [ebp - 4], 0xb
call fcn.0045a580
mov edx, dword [ebp - 0x1d8]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x490b2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x490b43
push dword [ebp - 0x28]
call fcn.0052586e
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x1bc]
call fcn.00404df0
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 8
call fcn.00403f60
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x490b88
push eax
call fcn.0052616f
add esp, 4
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x490ba1
push eax
call fcn.0052616f
add esp, 4
add edi, 0xfffffff0
mov byte [ebp - 4], 5
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x490bbe
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x490bdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 8