Function at 0x1002aeb9
Capabilities:
Allocate thread local storage

Disassembly:
push 0x858
push 0x10074478
call fcn.1004732c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x824], edi
and dword [0x10077ce0], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x10077ce4], eax
call esi
mov dword [0x10077ce8], eax
mov dword [0x10184ca0], edi
mov esi, 0x200
push esi
mov ebx, 0x10112fa8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call edi
push esi
lea eax, [ebp - 0x81c]
push eax
push 0
call edi
push ebx
push 0x1006a26c
push esi
mov esi, 0x101475e0
push esi
call fcn.10044f45
add esp, 0x10
cmp byte [0x10184ca8], 0
jne 0x1002af5a
mov edi, str.__x86__truep
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x1002af5a
push edi
push str._truep
push 0x10184ca8
push esi
call fcn.100401a1
add esp, 0x10
xor ebx, ebx
jmp 0x1002af6f
xor ebx, ebx
xor eax, eax
mov cl, byte [eax + 0x101475e0]
mov byte [eax + 0x10184ca8], cl
inc eax
test cl, cl
jne 0x1002af5e
cmp dword [0x1015568c], ebx
je 0x1002b032
lea eax, [ebp - 0x41c]
push eax
push esi
call fcn.10040d71
pop ecx
pop ecx
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x868]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x868]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x844]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x828]
push eax
movzx eax, word [ebp - 0x82a]
push eax
movzx eax, word [ebp - 0x82c]
push eax
movzx eax, word [ebp - 0x82e]
push eax
movzx eax, word [ebp - 0x832]
push eax
movzx eax, word [ebp - 0x834]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x21c]
push eax
call fcn.10044ec8
push 0x10184ca8
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push str.myDLL_:___s____s__s_:___s_
push ebx
call fcn.1004122a
add esp, 0x38
test byte [0x1015686c], 8
je 0x1002b04a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.10028ec9
test byte [0x102d2d98], 2
je 0x1002b135
cmp dword [0x10184eb4], ebx
je 0x1002b135
cmp dword [0x10184eb0], ebx
je 0x1002b135
xor esi, esi
mov dword [ebp - 0x820], esi
push 0x800
push ebx
push 0x100774b8
call fcn.10044b80
add esp, 0xc
mov dword [ebp - 4], ebx
cmp esi, dword [0x10151ce4]
jae 0x1002b0dd
mov eax, dword [esi*4 + 0x10151ce8]
cmp eax, ebx
je 0x1002b0dd
push eax
push 1
lea eax, [esi*4 + 0x100774b8]
push eax
call dword [0x10184eb0]
cmp dword [0x1015568c], ebx
je 0x1002b0d4
push dword [esi*4 + 0x10151ce8]
push esi
push str.LhSetExclusiveACL__d___p_
push ebx
call fcn.1004122a
add esp, 0x10
inc esi
mov dword [ebp - 0x820], esi
jmp 0x1002b092
mov dword [ebp - 4], 0xfffffffe
jmp 0x1002b135
test byte [0x102d2d98], 1
je 0x1002b14a
push dword [ebp - 0x824]
call fcn.1003f3c8
pop ecx
test byte [0x1015686c], 8
je 0x1002b162
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor eax, eax
inc eax
mov dword [0x10077ce0], eax
call fcn.10047374
ret