Function at 0x417d78
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
movzx eax, byte [ebp + 0x40]
test eax, eax
je 0x41807c
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x418019
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x417e9a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.00433c67
and dword [eax], 0
jmp 0x417e1b
push 0
mov ecx, dword [ebp - 0xc]
call fcn.00433c67
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.00433c67
cmp dword [eax], 2
jg 0x417e95
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x417e5f
push 1
push 0x74fc
push 0x463d
push 0x6768
push 1
push 0x389b
push 0x23c8
push 1
push 1
call fcn.00412f3c
add esp, 0x24
push 1
push 1
push 0x5427
push 0x2f9c
push 0x47a6
push 0x2426
push 0x3c73
push 1
push 0x4ee6
push 0x18ff
call fcn.0041339a
add esp, 0x28
jmp 0x417e03
jmp 0x418017
mov dword [ebp - 8], 0xffffffff
push 1
lea ecx, [ebp - 0xac]
call fcn.00433b79
mov dword [ebp - 0xb0], 0xf592758e
mov dword [ebp - 0x94], 0xd40a1650
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x84], 0
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 0xd580090a
lea eax, [ebp - 0xac]
push eax
push 0
lea eax, [ebp - 0xbc]
push eax
push 0x2f51
push 0
push 1
call fcn.00419bad
add esp, 0x18
mov dword [ebp - 8], 0xffffffe6
jmp 0x417f18
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xa
je 0x41800c
mov dword [ebp - 0x4c], 0xefc07e17
mov dword [ebp - 0x7c], 0xbce008fb
mov dword [ebp - 0x54], 0xfd06bde6
mov dword [ebp - 0x34], 0x7e815f84
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xb8], 0x59ec1348
mov dword [ebp - 0xa0], 9
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0xc0], 4
mov dword [ebp - 0x9c], 1
lea eax, [ebp - 0x34]
push eax
push 0
push 0x1310
push 0xfb0
push 0x1bee
push 1
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x94]
push eax
push 0x2b98
push 0x69ca
push 0x172a
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x765f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0041e049
add esp, 0x54
push 0x26f9
push 0x3baf
push 0
push 0x26fe
push 0x712
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00426f31
add esp, 0x1c
jmp 0x417f11
lea ecx, [ebp - 0xac]
call fcn.00433c4b
jmp 0x41807a
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x418063
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x418061
push 0
push 0x3df
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x41807a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x4180fa
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push 1
push 0x2085
push dword [ebp - 0x48]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push 0x2ebb
push 0x5b54
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push 0x7a4
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
push eax
push 0
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call fcn.00423494
add esp, 0x40
mov esp, ebp
pop ebp
ret