Function at 0x1001b240
Capabilities:
Allocate thread local storage
Check mutex on windows
Check os version
Get geographical location
Get thread local storage value
Query or enumerate registry value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xb6c
mov dword [0x100c5ca8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp ebx, 1
jne 0x1001b926
push 0x400
lea eax, [esp + 0x37c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1001b2c3
lea eax, [esp + 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, 0xa
jl 0x1001b2c3
push str.chrome.exe
lea eax, [esp + esi*2 + 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001b2c3
cmp esi, 0xa
je 0x1001b2b8
cmp word [esp + esi*2 + 0x362], 0x5c
jne 0x1001b2c3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100c5cac
call esi
push 0x100c5d18
call esi
push 0x100c6048
call esi
push 0x100c72bc
call esi
push 0x100c72dc
call esi
push 0x100c72f4
call esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push str.CompareStringOrdinal
push str.kernel32.dll
mov dword [0x100c5cd4], eax
mov dword [0x100c72a8], 0xffffffff
mov dword [0x100c72ac], 0
mov dword [0x100c5cd8], 0
mov dword [0x100c72b0], 0
mov dword [0x100c72d8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100
mov dword [0x100c7310], eax
lea eax, [esp + 0x30]
push 0
push eax
mov dword [0x100c5ccc], 0
mov dword [0x100c5cd0], 0
mov dword [esp + 0x24], 0x11c
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.1007cff0
add esp, 0xc
mov dword [esp + 0x130], 0x10000
xor eax, eax
mov dword [esp + 0x12c], eax
push 1
push 0x80
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov esi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push edx
push eax
push 0x80
lea eax, [esp + 0x24]
push eax
call esi
push 0x100
mov edi, eax
mov dword [esp + 0x1c], 0x11c
lea eax, [esp + 0x30]
mov dword [esp + 0x20], 0xa
push 0
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x55f0
mov dword [esp + 0x34], 0
call fcn.1007cff0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
push 3
push 4
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 7
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x1001b463
mov dword [0x100c5cc8], 0x40
jmp 0x1001b521
xor edx, edx
push ecx
lea ecx, [edx + 0xa]
call fcn.1001d330
add esp, 4
test al, al
je 0x1001b496
mov dword [0x100c5cc8], 0x20
test edi, edi
jne 0x1001b521
mov dword [0x100c5cc8], 0x80020
jmp 0x1001b521
mov edx, 3
push ecx
lea ecx, [edx + 3]
call fcn.1001d330
add esp, 4
test al, al
je 0x1001b4c5
mov dword [0x100c5cc8], 0x10
test edi, edi
jne 0x1001b521
mov dword [0x100c5cc8], 0x40010
jmp 0x1001b521
mov edx, 2
push ecx
lea ecx, [edx + 4]
call fcn.1001d330
add esp, 4
test al, al
je 0x1001b4f4
mov dword [0x100c5cc8], 8
test edi, edi
jne 0x1001b521
mov dword [0x100c5cc8], 0x40008
jmp 0x1001b521
mov edx, 1
push ecx
lea ecx, [edx + 5]
call fcn.1001d330
add esp, 4
test al, al
je 0x1001b521
mov dword [0x100c5cc8], 4
test edi, edi
jne 0x1001b521
mov dword [0x100c5cc8], 0x20004
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1001b550
cmp dword [esp + 0xc], 0
je 0x1001b550
or dword [0x100c5cc8], 0x40000000
test byte [0x100c5cc8], 0x60
je 0x1001b77f
push 0x118
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x11c
push 0
push eax
call fcn.1007cff0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 4
push 3
push 1
push 3
push 2
push 0
push 0
call esi
push edx
push eax
call esi
push edx
push eax
call esi
mov edi, edx
mov dword [esp + 0x1c], 0xa
push edi
mov esi, eax
mov dword [esp + 0x24], 0
push esi
push 7
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0x585d
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1001b5d7
or dword [0x100c5cc8], 0x2000000
jmp 0x1001b69a
push edi
push esi
push 7
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0x55f0
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x1001b69a
push edi
push esi
push 7
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0x47bb
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1001b61d
or dword [0x100c5cc8], 0x800000
jmp 0x1001b69a
push edi
push esi
push 7
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0x47ba
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1001b644
or dword [0x100c5cc8], 0x400000
jmp 0x1001b69a
push edi
push esi
push 7
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0x42ee
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1001b66b
or dword [0x100c5cc8], 0x200000
jmp 0x1001b69a
push edi
push esi
push 7
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0x3fab
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1001b692
or dword [0x100c5cc8], 0x100000
jmp 0x1001b69a
mov dword [esp + 0x24], 0x3ad7
mov eax, dword [esp + 0x24]
push 0x100b0df0
mov dword [0x100c5cd0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b6f4
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1001b6f4
push 0x118
lea eax, [esp + 0x140]
push 0
push eax
call fcn.1007cff0
add esp, 0xc
mov dword [esp + 0x138], 0x11c
lea eax, [esp + 0x138]
push eax
call esi
test eax, eax
je 0x1001b70b
push 0x11c
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.1007cff0
add esp, 0xc
mov ecx, 0x47
lea edi, [esp + 0x258]
lea esi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x264]
test eax, eax
je 0x1001b730
mov dword [0x100c5cd0], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b77f
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
push 0x100c5ccc
push 0
push 0
push 0x100ae52c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push 0x27
mov word [esp + 0x37c], ax
lea eax, [esp + 0x37c]
push eax
push 0x10
push 0x400
call esi
push str.3_2_0
lea eax, [esp + 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1001b7c5
mov dword [0x100c5d04], 0x20
jmp 0x1001b7de
push 0xa
lea eax, [esp + 0x37c]
push 0
push eax
call fcn.10086cf6
add esp, 0xc
mov dword [0x100c5d04], eax
push 8
push 0x100c5cdc
push 0xe
xor eax, eax
push 0x400
mov word [0x100c5cdc], ax
call esi
push 8
push 0x100c5cec
push 0xf
xor eax, eax
mov dword [0x100c5d08], 0x100c5cdc
push 0x400
mov word [0x100c5cec], ax
call esi
cmp word [0x100c5cdc], 0
mov dword [0x100c5d0c], 0x100c5cec
jne 0x1001b846
xor eax, eax
cmp word [0x100c5cec], 0x2e
setne al
lea eax, [eax*2 + 0x2c]
mov word [0x100c5cdc], ax
xor eax, eax
push 0x27
mov word [esp + 0x37c], ax
lea eax, [esp + 0x37c]
push eax
push 0x1010
push 0x400
call esi
push 0xa
lea eax, [esp + 0x37c]
push 0
push eax
call fcn.10086cf6
add esp, 0xc
mov dword [0x100c5d10], eax
push str.dopus.win7exhookhelper.mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x100c72d8], eax
mov eax, dword [0x100c5cd4]
cmp eax, 0xffffffff
je 0x1001b8ce
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1001b8ce
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001b8c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
push esi
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp ebx, 2
jne 0x1001b918
mov eax, dword [0x100c5cd8]
test eax, eax
je 0x1001b918
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001b918
push dword [0x100c5cd8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [0x100c72b0]
mov dword [0x100c5cd8], 0
test ecx, ecx
je 0x1001b918
push ecx
call esi
mov dword [0x100c72b0], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jne 0x1001ba23
call sym.dopuslib32.dll_Ordinal_25
mov esi, eax
and eax, 1
or eax, ebx
je 0x1001b941
call fcn.1005ae80
and esi, 2
or esi, 0
je 0x1001b94e
call fcn.10044ad0
test byte [0x100c5cc4], 1
mov edi, dword [sym.imp.KERNEL32.dll_TlsFree]
je 0x1001b97c
cmp dword [0x100c7330], 0
je 0x1001b97c
push dword [0x100c7600]
call edi
test eax, eax
je 0x1001b97c
mov dword [0x100c7330], 0
test byte [0x100c5cc4], 2
je 0x1001b9a4
cmp dword [0x100c732c], 0
je 0x1001b9a4
push dword [0x100c7608]
call edi
test eax, eax
je 0x1001b9a4
mov dword [0x100c732c], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x100c5cac
call esi
push 0x100c5d18
call esi
push 0x100c6048
call esi
push 0x100c72bc
call esi
push 0x100c72dc
call esi
push 0x100c72f4
call esi
mov eax, dword [0x100c72d8]
test eax, eax
je 0x1001b9e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100c5cd4]
cmp eax, 0xffffffff
je 0x1001b9f1
push eax
call edi
mov eax, dword [0x100c5d14]
test eax, eax
je 0x1001ba01
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x100c72b4]
test eax, eax
je 0x1001b918
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 2
je 0x1001b893
cmp ebx, 3
jne 0x1001b918
mov eax, dword [0x100c5cd4]
cmp eax, 0xffffffff
je 0x1001b918
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1001b918
mov eax, dword [esi]
and eax, 1
or eax, 0
je 0x1001ba63
call fcn.1005ae80
mov eax, dword [esi]
and eax, 2
or eax, 0
je 0x1001ba72
call fcn.10044ad0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1001ba86
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x18], 0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc