Function at 0x10012610
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010f895
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x10160068]
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 edi, ecx
push 1
push 0x10166b60
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100129cb
mov eax, dword [edi + 4]
test eax, eax
jne 0x10012843
push 4
call fcn.100ced35
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [eax], vtable.RCMinHookApiHook.0
mov dword [ebp - 4], 0xffffffff
push 0x110
mov dword [edi + 4], eax
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.100e7700
add esp, 0x10
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x148]
mov dword [0x1016407c], eax
mov eax, dword [ebp - 0x128]
mov dword [0x1016406c], eax
mov eax, dword [ebp - 0x124]
mov dword [0x10164078], eax
xor eax, eax
push 0x24
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
push str.FE749968_FFD1_497C_88B1_A715672EDBC3
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 7
mov word [ebp - 0x148], ax
call fcn.1000b730
mov dword [ebp - 4], 1
xor eax, eax
push eax
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x14c], 0
push 0x101376f0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
call fcn.1000b730
mov byte [ebp - 4], 2
lea eax, [ebp - 0x160]
push ecx
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.10085090
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14c]
cmp edx, 8
jb 0x100127b7
mov ecx, dword [ebp - 0x160]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100127ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100129e9
push edx
push ecx
call fcn.100cf0c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x134]
cmp edx, 8
jb 0x1001281b
mov ecx, dword [ebp - 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012811
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100129ee
push edx
push ecx
call fcn.100cf0c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x138], 0
mov word [ebp - 0x148], ax
mov eax, dword [edi + 4]
mov dword [ebp - 0x134], 7
test eax, eax
je 0x100129cb
call fcn.1002e520
mov ebx, eax
mov dword [0x10166088], ebx
test ebx, ebx
jne 0x1001285b
xor al, al
jmp 0x100129cd
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0xc8
push 0x1010b4f0
mov dword [0x10164080], eax
call fcn.1010bc50
add esp, 8
lea ecx, [edi + 8]
push 1
push 0x10008770
push ebx
call fcn.1010b3c0
test al, al
je 0x100128b4
lea ecx, [edi + 8]
call fcn.1010b350
lea ecx, [edi + 8]
mov dword [0x10164074], eax
call fcn.1010b460
lea eax, [ebx - 4]
push eax
call fcn.1010b5b0
add esp, 4
push 1
push 0x10008410
lea eax, [ebx - 0xc]
push eax
lea ecx, [edi + 0x40]
call fcn.1010b3c0
lea ecx, [edi + 0x40]
call fcn.1010b350
lea ecx, [edi + 0x40]
mov dword [0x10164070], eax
call fcn.1010b460
mov eax, dword [0x10164070]
test eax, eax
je 0x10012908
push 1
mov dword [ebp - 0x14], eax
lea ecx, [edi + 0x1c]
push 0x100083e0
lea eax, [ebp - 0x14]
push eax
call fcn.1010bab0
lea ecx, [edi + 0x1c]
call fcn.1010ba80
mov dword [0x10164068], eax
push 0
push 0
push edi
push 0x100124f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.10013630
test al, al
je 0x100129c1
call fcn.1002e5a0
test eax, eax
je 0x100129c1
push 1
push 0x10008e10
push eax
lea ecx, [edi + 0x54]
call fcn.1010b3c0
test al, al
je 0x100129c1
lea ecx, [edi + 0x54]
call fcn.1010b350
mov ecx, dword [edi + 4]
mov dword [0x10164064], eax
test ecx, ecx
jne 0x10012968
lea ecx, [edi + 0x54]
call fcn.1010b360
jmp 0x100129c1
xor eax, eax
mov dword [ebp - 0x138], 0x10009080
mov word [ebp - 0x133], ax
lea edx, [ebp - 0x148]
mov byte [ebp - 0x131], al
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov byte [ebp - 0x134], al
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], eax
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001295e
mov eax, dword [ebp - 0x13c]
mov dword [0x10164060], eax
mov ecx, dword [edi + 4]
push 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov al, 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.100ceb24
mov esp, ebp
pop ebp
ret
call fcn.100ecf9f
call fcn.100ecf9f
int3
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x10012610
ret