Function at 0x1002ff90
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1005e6f4]
mov dword [esp + 0x38], 0x1005bdb0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov word [esp + 0x44], 0
mov dword [esp + 0x28], 0x1005bdb0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov word [esp + 0x34], 0
mov dword [esp + 8], 0x1005bdb0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov word [esp + 0x14], 0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
test al, 1
jne 0x1003001e
or eax, 1
mov edx, 0x1005e6f8
push 0x11
mov ecx, str.R7ZE7V__
mov dword [0x1005e6f4], eax
call fcn.1000a600
add esp, 4
lea eax, [ebx + 0x398]
push eax
lea edi, [ebx + 0x394]
push edi
lea eax, [esp + 0x60]
push eax
lea eax, [ebx + 0x38c]
push eax
lea edx, [ebx + 0x38a]
push edx
lea ecx, [ebx + 0x388]
push ecx
push str._hu:_hu:_u:_u:_u:_u
push dword [esp + 0xdc]
call dword [sym.imp.msvcrt.dll_sscanf]
mov ebp, dword [sym.imp.msvcrt.dll_free]
add esp, 0x20
cmp eax, 4
jge 0x10030072
mov ecx, ebx
call fcn.1002d770
jmp 0x1003063b
lea eax, [ebx + 0x3c4]
mov dword [esp + 0x64], 0x70
mov dword [esp + 0x6c], eax
lea esi, [ebx + 0x3d4]
push 1
push dword [esp + 0xcc]
lea eax, [esp + 0x50]
mov byte [esp + 0x70], 1
push dword [esp + 0xcc]
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x70]
lea eax, [esp + 0x44]
mov dword [esp + 0x7c], 0x71
mov dword [esp + 0x9c], eax
sub esp, 8
lea eax, [esp + 0x2c]
mov byte [esp + 0x88], 1
mov dword [esp + 0xb0], eax
mov eax, esp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], 0x7d
mov byte [esp + 0x94], 1
mov dword [esp + 0x9c], 0x72
mov byte [esp + 0xa0], 1
mov dword [esp + 0xa8], 0x74
mov byte [esp + 0xac], 1
mov dword [eax], ecx
mov ecx, ebx
mov dword [eax + 4], 5
call fcn.1002fa50
test al, al
je 0x1003063b
mov al, byte [esp + 0xcc]
push 0
push ecx
push 0xffffffffffffffff
push 0
push 0x1005e6f8
lea ecx, [esp + 0x5c]
mov byte [ebx + 0xb4], al
call fcn.10003ce0
test eax, eax
setns al
cmp word [ebx + 0x388], 0x5c
mov byte [ebx + 0xb5], al
mov eax, dword [esp + 0xbc]
mov dword [ebx + 0x390], eax
jb 0x10030193
mov eax, dword [ebx + 0x398]
test eax, eax
je 0x10030184
cmp eax, 0xa
jbe 0x10030193
mov ecx, dword [ebx + 0xc]
push eax
call fcn.100147a0
mov dword [ebx + 0x398], eax
cmp dword [edi], 0
jne 0x1003019e
mov dword [edi], 0x1010903
cmp byte [ebx + 0x39c], 0
jne 0x10030205
cmp dword [esi + 4], 7
mov edi, dword [sym.imp.msvcrt.dll_strncmp]
jb 0x100301ce
push 7
push str.Chrome_
push dword [esi]
call edi
add esp, 0xc
test eax, eax
jne 0x100301ce
mov byte [ebx + 0x39c], 3
jmp 0x10030205
cmp dword [esi + 4], 8
jb 0x10030205
push 8
push str.Mozilla_
push dword [esi]
call edi
add esp, 0xc
test eax, eax
je 0x100301fe
cmp dword [esi + 4], 8
jb 0x10030205
push 8
push str.Firefox_
push dword [esi]
call edi
add esp, 0xc
test eax, eax
jne 0x10030205
mov byte [ebx + 0x39c], 2
cmp word [ebx + 0x388], 0x5a
jb 0x10030231
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10030231
push ecx
push dword [esp + 0x48]
lea ecx, [ebx + 0x3e4]
push eax
push dword [esp + 0x44]
call fcn.10004a20
jmp 0x100302c9
mov al, byte [ebx + 0x39c]
cmp al, 3
jne 0x10030282
cmp dword [ebx + 0x3ec], 0x38
lea esi, [ebx + 0x3e4]
jae 0x10030263
push 0x38
mov ecx, esi
call fcn.100049c0
test eax, eax
jne 0x10030263
mov dword [esi + 4], eax
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
jmp 0x100302c9
mov edi, dword [esi]
xor eax, eax
mov dword [esi + 4], 0x1b
mov ecx, 0xd
mov esi, str.Chrome_RenderWidgetHostHWND
mov word [edi + 0x36], ax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x100302c9
cmp al, 2
jne 0x100302c9
cmp dword [ebx + 0x3ec], 0x26
lea esi, [ebx + 0x3e4]
jae 0x100302ae
push 0x26
mov ecx, esi
call fcn.100049c0
test eax, eax
jne 0x100302ae
mov dword [esi + 4], eax
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
jmp 0x100302c9
mov edi, dword [esi]
xor eax, eax
mov dword [esi + 4], 0x12
mov ecx, 9
mov esi, str.MozillaWindowClass
mov word [edi + 0x24], ax
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x1c], 0
je 0x10030480
push 0
push 0xffffffffffffffff
push 0
push 0x2d
lea ecx, [esp + 0x28]
call fcn.10003bd0
mov esi, eax
lea edi, [ebx + 0x3f4]
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x100302f9
cmp esi, eax
jb 0x100302fb
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x24]
mov byte [edi + 0xc], al
test esi, esi
jle 0x1003033b
lea eax, [esi + 1]
cmp dword [edi + 8], eax
jae 0x10030322
push eax
mov ecx, edi
call fcn.100035c0
test eax, eax
je 0x1003033b
mov eax, dword [edi]
push esi
push dword [esp + 0x14]
mov dword [edi + 4], esi
push eax
mov byte [esi + eax], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10030347
mov eax, dword [edi]
mov dword [edi + 4], 0
mov byte [eax], 0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetLocaleInfoEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x100303ce
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x1005bdb0
push dword [esp + 0x24]
mov dword [esp + 0x38], edi
push dword [esp + 0x24]
mov dword [esp + 0x40], edi
mov word [esp + 0x44], 0xff
call fcn.10004a20
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push 2
push eax
push 0x20000001
push esi
call dword [esp + 0x20]
mov edi, eax
cmp esi, 0x1005bdb0
je 0x1003046c
lea ecx, [esi - 4]
push ecx
call ebp
add esp, 4
jmp 0x1003046c
push str.NLSDL.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10030480
push str.DownlevelLocaleNameToLCID
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10030465
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x1005bdb0
push dword [esp + 0x24]
mov dword [esp + 0x38], edi
push dword [esp + 0x24]
mov dword [esp + 0x40], edi
mov word [esp + 0x44], 0xff
call fcn.10004a20
push 0
push dword [esp + 0x2c]
call dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
cmp eax, 0x1005bdb0
je 0x1003044c
lea ecx, [eax - 4]
push ecx
call ebp
mov ecx, dword [esp + 0x14]
add esp, 4
test ecx, ecx
je 0x10030465
push 2
lea eax, [esp + 0x18]
push eax
push 0x20000001
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, 2
jne 0x10030480
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10030480
mov word [ebx + 0x404], ax
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x100304c1
mov eax, dword [ebx + 0x3a0]
test eax, eax
jne 0x100304b6
movzx eax, word [ebx + 0x44]
push eax
push ecx
mov ecx, dword [ebx + 0xc]
call fcn.10011470
mov dword [ebx + 0x3a0], eax
test eax, eax
jne 0x100304b6
mov ecx, ebx
call fcn.1002d770
jmp 0x1003063b
mov ecx, eax
call fcn.100399b0
test eax, eax
je 0x100304c7
mov dword [ebx + 0x3a0], eax
mov edx, dword [ebx + 0x3a0]
lea ecx, [esp + 0xa0]
call fcn.10006230
mov ecx, dword [ebx + 0x3a4]
lea edi, [ebx + 0x3a4]
mov esi, eax
cmp ecx, 0x1005bdb0
je 0x100304f8
add ecx, 0xfffffffc
push ecx
call ebp
add esp, 4
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov dword [esi], 0x1005bdb0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0xa0]
mov esi, dword [edi + 4]
cmp eax, 0x1005bdb0
je 0x1003053c
add eax, 0xfffffffc
push eax
call ebp
add esp, 4
test esi, esi
je 0x100305f8
push 0
mov edx, edi
lea ecx, [esp + 0x2c]
call fcn.1000a910
add esp, 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x14], edx
lea eax, [eax + ecx*2]
mov dword [esp + 0x60], eax
test edx, edx
jle 0x100305ac
lea eax, [edx + edx]
mov dword [esp + 0x5c], eax
add eax, 0x20
mov dword [esp + 0x10], eax
add eax, 4
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x100305ac
add esi, 4
test esi, esi
je 0x100305ac
mov eax, dword [esp + 0x5c]
xor ecx, ecx
push eax
push dword [esp + 0x64]
push esi
mov word [esi + eax], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x100305c1
mov esi, 0x1005bdb0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebx + 0x3b4]
cmp eax, 0x1005bdb0
je 0x100305d7
add eax, 0xfffffffc
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x3b8], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x3b4], esi
mov dword [ebx + 0x3bc], eax
mov byte [ebx + 0x3c0], 0xff
mov eax, dword [0x1005be08]
mov eax, dword [eax + 0x1174]
shr eax, 0x1e
test al, 1
je 0x10030611
mov byte [ebx + 0xb5], 0
movzx eax, word [ebx + 0x38a]
mov ecx, dword [ebx + 0xc]
push eax
push edi
call fcn.10014470
mov ecx, ebx
call fcn.10033db0
mov ecx, ebx
call fcn.10033f50
mov ecx, ebx
call fcn.10034210
mov byte [ebx + 0x4d], 8
mov eax, dword [esp + 0x18]
cmp eax, 0x1005bdb0
je 0x1003064c
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, 0x1005bdb0
je 0x1003065d
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, 0x1005bdb0
je 0x1003066e
push eax
call ebp
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 0x1c