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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.00435349
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43583d
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c3bb0], dl
je 0x43588c
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x43588c
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x435894
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x435894
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c3bb0], 0
mov esi, dword [0x4c3bb4]
je 0x4358e2
cmp esi, 0xffffffff
je 0x4358e2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4358d8
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c3bb4]
jmp 0x4358e4
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c3bb0], 0
mov dword [ebp - 4], esp
je 0x435928
cmp esi, 0xffffffff
je 0x435928
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43592a
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x43592a
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c3bb0], 0
mov eax, dword [0x4c3bb4]
je 0x435975
cmp eax, 0xffffffff
je 0x435975
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43596c
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c3bb4]
mov ebx, esi
jmp 0x435977
xor ebx, ebx
cmp byte [0x4c3bb0], 0
je 0x4359b6
cmp eax, 0xffffffff
je 0x4359b6
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4359b2
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x4359b8
xor edi, edi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x14]
call fcn.00435349
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
mov ebx, eax
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov edi, eax
cmp eax, dword [0x4c2fdc]
jae 0x435a82
shl eax, 4
mov esi, eax
mov eax, dword [0x4c2fd4]
add eax, esi
cmp dword [eax + 8], 0
je 0x435a0b
mov ecx, dword [eax + 8]
call fcn.00435349
push eax
push ebx
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x435a72
mov eax, dword [ebp + 8]
test eax, eax
je 0x435a4e
mov ecx, dword [0x4c2fd4]
mov ecx, dword [esi + ecx]
test ecx, ecx
je 0x435a4e
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435a45
test dx, dx
je 0x435a41
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435a45
add eax, 4
add ecx, 4
test dx, dx
jne 0x435a1f
xor eax, eax
jmp 0x435a4a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x435a72
cmp dword [ebp + 0xc], 0
je 0x435a8f
mov eax, dword [0x4c2fd4]
add eax, esi
cmp dword [eax + 4], 0
je 0x435a8f
push dword [eax + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x435a8f
inc edi
add esi, 0x10
cmp edi, dword [0x4c2fdc]
jb 0x4359e9
or eax, 0xffffffff
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x435a85