Function at 0x45c8db
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
movzx eax, byte [ebp + 0x34]
test eax, eax
je 0x45cbb1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x9c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x45cb72
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x45cb63
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x45ca06
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xf
jl 0x45cb61
mov dword [ebp - 0xc], 0
jmp 0x45ca22
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jge 0x45ca38
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xdc], 0xd66a0756
jmp 0x45ca1b
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
je 0x45ca49
mov dword [ebp - 0x28], 1
jmp 0x45ca4d
and dword [ebp - 0x28], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xdc]
cmp eax, dword [ebp - 0x28]
jle 0x45ca68
mov dword [ebp - 0x40], 1
jmp 0x45ca6c
and dword [ebp - 0x40], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0xdc]
imul eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
je 0x45ca8d
mov dword [ebp - 0x1c], 1
jmp 0x45ca91
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jg 0x45caa4
mov dword [ebp - 0x38], 1
jmp 0x45caa8
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 1
je 0x45cab7
mov dword [ebp - 0x30], 1
jmp 0x45cabb
and dword [ebp - 0x30], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp + eax - 0xdc]
jne 0x45cadb
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x45cadb
and dword [ebp - 0x20], 0
jmp 0x45cae2
mov dword [ebp - 0x20], 1
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + eax - 0xdc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
imul eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sub eax, dword [ecx]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x45cb21
mov dword [ebp - 0x34], 1
jmp 0x45cb25
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jne 0x45cb3d
mov dword [ebp - 0x3c], 1
jmp 0x45cb41
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 1
jle 0x45cb50
mov dword [ebp - 0x44], 1
jmp 0x45cb54
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x45c9fb
jmp 0x45cb70
push 0
push 0xb20
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x45cbac
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
push 0x5036
push 0
push 0x76ea
push 0x5c1d
push 1
push 0x6910
push 0x5a53
push 0x7e91
push 0
push 0x5c99
call fcn.00454cc1
add esp, 0x2c
jmp 0x45ccf5
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x90], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x45cc4f
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x45cc3b
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax]
test eax, eax
je 0x45cc39
push 1
push 0x5e0
push 0
push 1
call fcn.00453c28
add esp, 0x10
jmp 0x45cc4a
push 0xed
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x45ccf5
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
movzx eax, byte [eax]
test eax, eax
je 0x45cc9a
mov byte [ebp - 1], 0
push 0x72b3
push 0x5ec8
push 0x7be8
push 0x7058
push 0x64d1
lea eax, [ebp - 1]
push eax
push 0x165c
push 0
call fcn.0045d255
add esp, 0x20
jmp 0x45ccf5
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc8], 0xfffffffa
push 0x61bd
push 0x1776
push 0x182a
push 1
push 0x5b0d
push 0
push 0
call fcn.0045890b
add esp, 0x1c
mov dword [ebp - 0x10], 0
jmp 0x45ccdd
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xfffffff7
jne 0x45ccf5
lea eax, [ebp - 0xc8]
push eax
push 0
call fcn.0045ebf3
pop ecx
pop ecx
jmp 0x45ccd6
mov esp, ebp
pop ebp
ret