Function at 0x10037fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x10], 0
jne 0x10037feb
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x100383d9
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x44], edi
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x100383d9
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
cmp dword [ebp + 8], 0
lea esi, [eax + 0x10]
mov dword [ebp - 0x40], esi
je 0x10038085
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x10038085
cmp dword [0x1025a37c], 0xffffffff
je 0x10038085
push eax
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10038085
mov eax, dword [0x1025a380]
test eax, eax
je 0x10038085
lea ecx, [ebp - 0x3c]
push ecx
call eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 0x3c]
push dword [0x1025a37c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1003808f
mov eax, dword [ebx]
push 0xf
push str._Program_Files_
push 0
push dword [ebx + 0x10]
push eax
call fcn.1002d2d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1003811e
push 0xf
push str._Program_Files_
lea ecx, [ebp - 0x44]
call fcn.10004050
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100380c2
mov eax, dword [ebx]
push 0xf
push str._Program_Files_
push 0
push dword [ebx + 0x10]
push eax
call fcn.1002d2d0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x38]
push str._programfiles__
push eax
call fcn.10009b10
add esp, 0x1c
lea ecx, [ebp - 0x40]
push eax
call fcn.10004870
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003810c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x38], 1
jmp 0x100381f4
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10038128
mov eax, dword [ebx]
push 8
push str._System_
push 0
push dword [ebx + 0x10]
push eax
call fcn.1002d2d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x100381ee
push 8
push str._System_
lea ecx, [ebp - 0x44]
call fcn.10004050
push 0
push str._System_
mov ecx, ebx
call fcn.100509c0
mov dword [ebp - 0x3c], eax
call fcn.1000ad40
test eax, eax
je 0x100381a6
cmp dword [ebp + 8], 0
jne 0x100381a6
lea eax, [ebp - 0x38]
push str._systemroot_SysWOW64_
push eax
call fcn.10009b10
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.10004870
lea ecx, [ebp - 0x38]
call int.10008f10
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x38], 1
jmp 0x100381f4
lea eax, [ebp - 0x38]
push str._systemroot_System32_
push eax
call fcn.10009b10
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.10004870
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003810c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x38], 1
jmp 0x100381f4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 8], 0
je 0x10038246
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x10038246
cmp dword [0x1025a37c], 0xffffffff
je 0x10038246
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10038246
cmp dword [0x1025a384], 0
je 0x10038246
push dword [0x1025a37c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebp - 0x38], 0
je 0x10038396
cmp dword [esi - 4], 1
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x38], eax
jle 0x1003826a
push dword [esi - 0xc]
lea ecx, [ebp - 0x40]
call fcn.100038a0
mov esi, dword [ebp - 0x40]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038270
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x38]
mov ecx, ebx
push dword [ebp - 0x3c]
call fcn.10008700
push dword [esi - 8]
push esi
call fcn.10200d80
add esp, 8
test eax, eax
js 0x100383e3
cmp eax, dword [esi - 8]
jg 0x100383e3
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, ebx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x48], 1
jb 0x100382c5
mov eax, dword [ebx]
push 1
push 0x1021cd78
push 0
push dword [ebx + 0x10]
push eax
call fcn.1002d2d0
add esp, 0x14
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x10038396
push 0
push 0x1021cffc
mov ecx, ebx
call fcn.100509c0
cmp eax, 0xffffffff
je 0x10038337
push 0x10219e0c
lea ecx, [ebp - 0x34]
call fcn.10006b40
push 0x1021cffc
lea ecx, [ebp - 0x1c]
call fcn.10006b40
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.10007650
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.1001d6d0
lea ecx, [ebp - 0x34]
call fcn.1001d6d0
push 0
push 0x1021cff4
mov ecx, ebx
mov dword [ebp - 0x48], 1
call fcn.100509c0
cmp eax, 0xffffffff
je 0x10038396
push 0x10219e0c
lea ecx, [ebp - 0x1c]
call fcn.10006b40
push 0x1021cff4
lea ecx, [ebp - 0x34]
call fcn.10006b40
push dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.10007650
add esp, 0x10
lea ecx, [ebp - 0x34]
call fcn.1001d6d0
lea ecx, [ebp - 0x1c]
call fcn.1001d6d0
mov dword [ebp - 0x48], 1
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100383b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
pop esi
test ebx, ebx
jg 0x100383c6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
push 0x80070057
call fcn.100030c0
int3