Function at 0x10008a40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 8]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10008a81
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x3c]
mov dword [ebp - 4], 0
cmp dword [eax + 0xc], 0
mov dword [ebp - 0x48], eax
je 0x10008aaa
cmp dword [eax + 4], 0
je 0x10008aaa
cmp dword [esi + 0x38], 0
je 0x10008aaa
cmp dword [esi + 0x30], 0
jne 0x10008da9
mov dword [ebp - 0x30], vtable.CStringBufferW.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10008950
mov ecx, dword [ebp - 0x24]
test eax, eax
je 0x10008d79
test ecx, ecx
je 0x10008d79
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10008d79
jle 0x10008b17
lea edx, [eax - 1]
cmp edx, eax
sbb eax, eax
inc eax
jne 0x10008b0d
movzx eax, word [ecx + edx*2]
cmp eax, 0x5c
je 0x10008b17
cmp eax, 0x2f
je 0x10008b17
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.1003eea0
push str.SearchInNewTabContent.xml
lea ecx, [ebp - 0x30]
call fcn.1003ef80
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10008d79
cmp dword [ebp - 0x2c], 0
je 0x10008d79
lea ecx, [ebp - 0x98]
call fcn.1004a5f0
push 0
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.1004a820
test eax, eax
je 0x10008d67
lea ecx, [ebp - 0x98]
call fcn.1004af40
mov ebx, eax
test ebx, ebx
je 0x10008d67
push ecx
mov ecx, ebx
call fcn.10048fa0
test eax, eax
je 0x10008d67
mov ecx, dword [esi + 0x24]
call fcn.1001c4c0
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x10008d67
push str.SCRIPT
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.100492d0
add esi, 0x2c
push eax
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], esi
call fcn.1003ecf0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10022960
mov ecx, esi
call fcn.1003f1f0
test eax, eax
jne 0x10008cce
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call dword [eax + 0x7c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.1003f1f0
test eax, eax
jne 0x10008cc2
push ecx
push str._nvar_activeXProgID__
lea ecx, [ebp - 0x1c]
call fcn.1003e580
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x10008c65
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10008c16
sub esi, ecx
sar esi, 1
cmp dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
jne 0x10008c37
push esi
push edi
call fcn.1003ea90
jmp 0x10008c62
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
call fcn.1003f120
test eax, eax
je 0x10008c62
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, ecx
push edi
push eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + ecx*2]
push eax
call fcn.1006fdc7
add esp, 0xc
add dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
jne 0x10008c7c
push 2
push 0x10098134
call fcn.1003ea90
jmp 0x10008cad
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
call fcn.1003f120
test eax, eax
je 0x10008cad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, ecx
push 0x10098134
push eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + ecx*2]
push eax
call fcn.1006fdc7
add esp, 0xc
add dword [ebp - 0x18], 2
push dword [ebp - 0x10]
mov ecx, esi
call fcn.1003ef80
lea ecx, [ebp - 0x1c]
call fcn.10022960
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10022960
push str.HTML
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.100492d0
mov ecx, dword [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.1003ecf0
lea ecx, [ebp - 0x40]
call fcn.10022960
mov dword [ebp - 0x1c], vtable.CStringBufferW.0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push ecx
push str.CountryShortCode
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.1003e580
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.100250b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10022960
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
push esi
push str.EB_COUNTRY
call fcn.1003f290
mov ecx, dword [ebp - 0x48]
push esi
push str.EB_COUNTRY
call fcn.1003f290
lea ecx, [ebp - 0x1c]
call fcn.10022960
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.1004a790
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], vtable.CStringBufferW.0
test ecx, ecx
je 0x10008d8d
push ecx
call fcn.1006eaef
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], vtable.CSeed.0
lea ecx, [ebp - 0x44]
call fcn.10046c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret