Function at 0x40d8e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x2c], 0xb1
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x58], 0x15d
mov dword [ebp - 0xc], 0x384
mov dword [ebp - 0x30], 0x193
mov dword [ebp - 0x68], 0x2f
mov dword [ebp - 0x7c], 0x20a
mov dword [ebp - 0x80], 0x287
mov dword [ebp - 0x84], 0x65
mov dword [ebp - 0x5c], 0x284
mov dword [ebp - 8], 0xf1
mov dword [ebp - 0x24], 0x1f2
mov dword [ebp - 0x1c], 0x5f
mov dword [ebp - 0x20], 0xbe
mov dword [ebp - 0x74], 0x73
mov dword [ebp - 0x88], 0xe4
mov dword [ebp - 0x64], 0x3bc
mov dword [ebp - 0x18], 0x254
mov dword [ebp - 0x8c], 0xf8
mov dword [ebp - 4], 0x49
mov dword [ebp - 0x54], 0x2dc
mov dword [ebp - 0x60], 0x37d
mov dword [ebp - 0x90], 0x389
mov dword [ebp - 0x4c], 0x364
mov dword [ebp - 0x78], 0xec
mov dword [ebp - 0x10], 0
jmp 0x40d9b6
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 0x18833
cmp dword [ebp - 0x10], ecx
jge 0x40d9d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, dword [ebp + 0x14]
sub edx, 1
mov dword [ebp + 0x14], edx
jmp 0x40d9ad
mov eax, dword [ebp - 0x28]
sub eax, 0xcd
push eax
mov ecx, dword [ebp - 0x58]
sub ecx, 0xca
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x2b2
push edx
mov eax, dword [ebp - 0x5c]
sub eax, 0x19
push eax
mov ecx, dword [ebp + 0x18]
add ecx, 0x23e
push ecx
mov edx, dword [ebp + 8]
add edx, 0x8d
push edx
mov eax, dword [ebp - 4]
add eax, 0x308
push eax
call fcn.0040a110
add esp, 0x1c
mov dword [ebp - 0x14], 0
jmp 0x40da30
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x60]
sub edx, 0x18a1d
cmp dword [ebp - 0x14], edx
jge 0x40da69
call dword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
and ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x64]
or edx, ecx
je 0x40da67
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
jmp 0x40da27
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x2c]
jge 0x40db9d
mov edx, dword [ebp - 0x68]
imul edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jge 0x40db9d
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x18]
jge 0x40db9d
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 8]
jge 0x40daa2
mov dword [ebp - 0x34], 1
jmp 0x40daa9
mov dword [ebp - 0x34], 0
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0x14]
jge 0x40daba
mov dword [ebp - 0x38], 1
jmp 0x40dac1
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 0x38]
je 0x40db9d
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x20]
jge 0x40dae7
mov dword [ebp - 0x3c], 1
jmp 0x40daee
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x4c]
jge 0x40db02
mov dword [ebp - 0x40], 1
jmp 0x40db09
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0xc]
and ecx, dword [ebp - 0x3c]
or ecx, dword [ebp - 0x40]
je 0x40db9d
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x70]
jge 0x40db9d
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0xc]
jge 0x40db49
mov dword [ebp - 0x44], 1
jmp 0x40db50
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x74]
jge 0x40db61
mov dword [ebp - 0x48], 1
jmp 0x40db68
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x44]
or edx, dword [ebp - 0x48]
je 0x40db9d
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x78]
jge 0x40db81
mov dword [ebp - 0x50], 1
jmp 0x40db88
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x7c]
imul ecx, dword [ebp - 0x4c]
and ecx, dword [ebp - 0x50]
je 0x40db9d
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret