Function at 0x778058
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00407538
xor eax, eax
push ebp
push 0x7783ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x388]
xor edx, edx
call fcn.004c43d8
call fcn.0040d914
mov edx, dword [ebp - 4]
mov dword [edx + 0x3b0], eax
xor eax, eax
push ebp
push 0x7783d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x778408
call fcn.004086d4
jne 0x77813f
push 0x1b58
call sub.KERNEL32.DLL_TlsSetValue
mov eax, dword [ebp - 4]
add eax, 0x3b8
mov edx, 0x778418
call fcn.00407834
mov eax, dword [0x78e084]
mov eax, dword [eax]
mov edx, 0x1ea
call fcn.004d7af8
mov eax, dword [0x78e084]
mov eax, dword [eax]
mov edx, 0x64
call fcn.004d7b34
mov eax, dword [0x7949a4]
push eax
mov eax, dword [0x78e084]
mov eax, dword [eax]
call fcn.00497cb0
push eax
call fcn.0040dc44
mov eax, dword [0x78e084]
mov eax, dword [eax]
call fcn.004d6f4c
mov eax, dword [0x78e084]
mov eax, dword [eax]
mov eax, dword [eax + 0x388]
mov dl, 1
call fcn.004c43d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov dl, 1
call fcn.004c43d8
mov eax, dword [ebp - 8]
mov edx, 0x778434
call fcn.004086d4
jne 0x7781d8
push 0x1f40
call sub.KERNEL32.DLL_TlsSetValue
mov eax, dword [ebp - 4]
add eax, 0x3b8
mov edx, 0x778444
call fcn.00407834
mov eax, dword [0x78d2ac]
mov eax, dword [eax]
mov edx, 0x1d6
call fcn.004d7af8
mov eax, dword [0x78d2ac]
mov eax, dword [eax]
mov edx, 0x64
call fcn.004d7b34
mov eax, dword [0x7949a4]
push eax
mov eax, dword [0x78d2ac]
mov eax, dword [eax]
call fcn.00497cb0
push eax
call fcn.0040dc44
mov eax, dword [0x78d2ac]
mov eax, dword [eax]
call fcn.004d6f4c
mov eax, dword [0x78d2ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x388]
mov dl, 1
call fcn.004c43d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov dl, 1
call fcn.004c43d8
mov eax, dword [ebp - 8]
mov edx, 0x778460
call fcn.004086d4
jne 0x77827c
mov eax, dword [ebp - 4]
add eax, 0x3b8
mov edx, 0x778470
call fcn.00407834
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x738050]
call fcn.004d10dc
mov edx, dword [0x78d550]
mov dword [edx], eax
mov eax, dword [0x78d550]
mov eax, dword [eax]
mov edx, 1
call fcn.004d7af8
mov eax, dword [0x78d550]
mov eax, dword [eax]
mov edx, 1
call fcn.004d7b34
mov eax, dword [0x78d550]
mov eax, dword [eax]
mov edx, 0xbb8
call fcn.0048e34c
mov eax, dword [0x78d550]
mov eax, dword [eax]
mov edx, 0xbb8
call fcn.0048e380
mov eax, dword [0x7949a4]
push eax
mov eax, dword [0x78d550]
mov eax, dword [eax]
call fcn.00497cb0
push eax
call fcn.0040dc44
mov eax, dword [0x78d550]
mov eax, dword [eax]
call fcn.004d6f4c
mov eax, dword [ebp - 8]
mov edx, 0x77848c
call fcn.004086d4
jne 0x778320
mov eax, dword [ebp - 4]
add eax, 0x3b8
mov edx, 0x77849c
call fcn.00407834
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x746c64]
call fcn.004d10dc
mov edx, dword [0x78dab8]
mov dword [edx], eax
mov eax, dword [0x78dab8]
mov eax, dword [eax]
mov edx, 2
call fcn.004d7af8
mov eax, dword [0x78dab8]
mov eax, dword [eax]
mov edx, 2
call fcn.004d7b34
mov eax, dword [0x78dab8]
mov eax, dword [eax]
mov edx, 0xbb8
call fcn.0048e34c
mov eax, dword [0x78dab8]
mov eax, dword [eax]
mov edx, 0xbb8
call fcn.0048e380
mov eax, dword [0x7949a4]
push eax
mov eax, dword [0x78dab8]
mov eax, dword [eax]
call fcn.00497cb0
push eax
call fcn.0040dc44
mov eax, dword [0x78dab8]
mov eax, dword [eax]
call fcn.004d6f4c
mov eax, dword [ebp - 8]
mov edx, 0x7784b8
call fcn.004086d4
jne 0x7783c4
mov eax, dword [ebp - 4]
add eax, 0x3b8
mov edx, 0x7784c8
call fcn.00407834
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x75b414]
call fcn.004d10dc
mov edx, dword [0x78d368]
mov dword [edx], eax
mov eax, dword [0x78d368]
mov eax, dword [eax]
mov edx, 1
call fcn.004d7af8
mov eax, dword [0x78d368]
mov eax, dword [eax]
mov edx, 1
call fcn.004d7b34
mov eax, dword [0x78d368]
mov eax, dword [eax]
mov edx, 0xbb8
call fcn.0048e34c
mov eax, dword [0x78d368]
mov eax, dword [eax]
mov edx, 0xbb8
call fcn.0048e380
mov eax, dword [0x7949a4]
push eax
mov eax, dword [0x78d368]
mov eax, dword [eax]
call fcn.00497cb0
push eax
call fcn.0040dc44
mov eax, dword [0x78d368]
mov eax, dword [eax]
call fcn.004d6f4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7783d9
ret