Function at 0x100421e0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1005016d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x100682b0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
xor ebx, ebx
push 0x18
mov dword [esi + 8], ebx
call fcn.100199d3
add esp, 4
cmp eax, ebx
je 0x100424ac
mov dword [esi + 4], eax
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov eax, dword [esi + 4]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 4]
mov byte [ecx + 0x15], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
push 0x30
mov dword [esp + 0x70], ebx
mov dword [esi + 0x24], ebx
call fcn.100199d3
add esp, 4
cmp eax, ebx
je 0x10042483
mov dword [esi + 0x20], eax
mov dword [eax], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x20]
mov byte [edx + 0x28], 1
mov eax, dword [esi + 0x20]
mov byte [eax + 0x29], 1
mov dword [esi + 0x2c], ebx
push 0x18
mov byte [esp + 0x70], 1
mov dword [esi + 0x38], ebx
call fcn.100199d3
add esp, 4
cmp eax, ebx
je 0x1004245a
mov dword [esi + 0x34], eax
mov dword [eax], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x34]
mov byte [ecx + 0x14], 1
mov edx, dword [esi + 0x34]
mov byte [edx + 0x15], 1
push 0x3c
mov byte [esp + 0x70], 2
mov dword [esi + 0x4c], ebx
call fcn.100199d3
add esp, 4
cmp eax, ebx
je 0x10042431
mov dword [esi + 0x48], eax
mov dword [eax], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x48]
mov byte [eax + 0x38], 1
mov ecx, dword [esi + 0x48]
mov byte [ecx + 0x39], 1
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x70], bl
mov dword [esi + 0x74], ebx
push 0x18
mov byte [esp + 0x70], 3
mov dword [esi + 0x80], ebx
call fcn.100199d3
add esp, 4
cmp eax, ebx
je 0x10042408
mov dword [esi + 0x7c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x7c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x7c]
mov byte [edx + 0x14], 1
mov eax, dword [esi + 0x7c]
mov byte [eax + 0x15], 1
lea ecx, [esi + 0x88]
mov byte [esp + 0x6c], 4
call fcn.10049940
mov byte [esp + 0x6c], 5
call fcn.10044dc0
push eax
call fcn.1004b4fd
add esp, 4
call fcn.1004b50f
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdiv qword [0x10059118]
fmul qword [0x10059128]
call fcn.1004b330
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
mov ecx, 1
push ebx
sub ecx, eax
push ebx
mov dword [esi + 0x18], ecx
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x10], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push ebx
push ebx
mov dword [esi + 0x2c], eax
call edi
push 0x2c
mov dword [esi + 0x40], eax
call fcn.100199d3
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x6c], 6
cmp eax, ebx
je 0x100423ee
push 0x400
mov ecx, eax
call fcn.10041620
jmp 0x100423f0
xor eax, eax
mov dword [esi + 0x58], eax
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x60
ret
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
call fcn.10019258
push 0x10063fc0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.1001b990
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call fcn.10019258
push 0x10063fc0
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], vtable.std::bad_alloc.0
call fcn.1001b990
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], ebx
call fcn.10019258
push 0x10063fc0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], vtable.std::bad_alloc.0
call fcn.1001b990
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], ebx
call fcn.10019258
push 0x10063fc0
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], vtable.std::bad_alloc.0
call fcn.1001b990
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], ebx
call fcn.10019258
push 0x10063fc0
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x60], vtable.std::bad_alloc.0
call fcn.1001b990
int3