Function at 0x1003dc3d
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003dec0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1003deb8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], 0x1e16
cmp dword [ebp - 0x48], 0xb6f
jge 0x1003de6a
lea eax, [ebp - 0x1c]
push eax
push 0x1000903c
call fcn.1004d47b
pop ecx
pop ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x84]
call fcn.10010424
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
jmp 0x1003dcf8
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jge 0x1003dd1d
push dword [ebp - 0x20]
lea ecx, [ebp - 0x84]
call fcn.1001048b
push eax
push 0x1000903c
call fcn.1004d47b
pop ecx
pop ecx
jmp 0x1003dcf1
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x84]
call fcn.10021a64
push dword [eax]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x84]
call fcn.100108a7
push dword [eax]
call fcn.10046223
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
dec eax
cdq
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x84]
call fcn.1001048b
mov esi, eax
mov eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x84]
call fcn.1001048b
mov ecx, dword [esi]
add ecx, dword [eax]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x28], eax
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x540be400
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x1003dd9a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
inc eax
cmp dword [ebp - 0x10], eax
jg 0x1003de48
cmp dword [ebp - 0x10], 0
jg 0x1003ddaf
jmp 0x1003dd93
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
jmp 0x1003ddc0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jge 0x1003de2f
push dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.1001048b
mov ecx, dword [ebp - 0x10]
dec ecx
cmp dword [eax], ecx
jge 0x1003ddfa
mov esi, dword [ebp - 0x10]
dec esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.1001048b
sub esi, dword [eax]
add esi, dword [ebp - 0x18]
mov dword [ebp - 0x18], esi
jmp 0x1003de2d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.1001048b
mov ecx, dword [ebp - 0x10]
inc ecx
cmp dword [eax], ecx
jle 0x1003de2d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.1001048b
mov eax, dword [eax]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x18], eax
jmp 0x1003ddb9
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x24]
jge 0x1003de43
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x1003dd93
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push 0x10009060
call fcn.1004d6af
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10010486
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
push 1
push 0x30e2
push dword [ebp - 0x60]
push 1
mov eax, dword [ebp - 0x64]
push dword [eax]
mov eax, dword [ebp - 0x68]
push dword [eax]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push 0x7bfb
push 0x1940
call fcn.1003b7a2
add esp, 0x28
jmp 0x1003debe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1003dec8
push 1
call fcn.1002953a
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret