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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
mov byte [ebp - 1], 0
call fcn.004385b5
and dword [ebp - 0x14], 0
cmp byte [edi], 0x5b
jne 0x438984
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x438792
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 0xc], eax
cmp byte [0x4c3bb0], dl
je 0x4387e1
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x4387e1
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4387e3
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 0x4387e3
xor esi, esi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c3bb0], 0
mov esi, dword [0x4c3bb4]
je 0x438831
cmp esi, 0xffffffff
je 0x438831
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x438827
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 0x438833
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c3bb0], 0
mov dword [ebp - 0xc], esp
je 0x438877
cmp esi, 0xffffffff
je 0x438877
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x438879
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 0x438879
xor esi, esi
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
cmp byte [0x4c3bb0], 0
mov eax, dword [0x4c3bb4]
je 0x4388c5
cmp eax, 0xffffffff
je 0x4388c5
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4388bb
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 dword [ebp - 0xc], esi
jmp 0x4388c9
and dword [ebp - 0xc], 0
cmp byte [0x4c3bb0], 0
je 0x438904
cmp eax, 0xffffffff
je 0x438904
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x438900
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 ecx, esi
jmp 0x438906
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov ecx, dword [ecx + 0x18]
push eax
push dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memcpy
mov esi, eax
push 0x5d
push esi
call sub.MSVCRT.dll_strrchr
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x438ae1
lea eax, [ebp - 0x3c]
mov byte [ebx], 0
lea ecx, [esi + 1]
push eax
lea edx, [ebp - 1]
inc ebx
call fcn.0044279f
cmp byte [ebp - 1], 0
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x438ae1
cmp byte [ebx], 0x3a
jne 0x438968
inc ebx
push ebx
call sub.MSVCRT.dll_atoi
pop ecx
movzx eax, ax
jmp 0x43896b
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x2c], ax
lea esi, [ebp - 0x3c]
mov edi, dword [ebp - 8]
jmp 0x438adb
push 0x3a
push edi
call sub.MSVCRT.dll_strrchr
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x4389bc
lea edx, [ebp - 1]
mov ecx, edi
call fcn.00442730
cmp byte [ebp - 1], 0
je 0x438ae1
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.004385f0
mov esi, eax
jmp 0x438ad9
push 0x3a
push edi
call sub.MSVCRT.dll_strchr
pop ecx
pop ecx
cmp eax, esi
jne 0x438ab3
sub esi, edi
lea eax, [esi + 1]
call section..text
cmp byte [0x4c3bb0], 0
mov dword [ebp - 0x14], esp
je 0x438a1d
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x438a1d
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x438a1f
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov ebx, eax
pop ecx
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x438a1f
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
cmp byte [0x4c3bb0], 0
je 0x438a69
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x438a69
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x438a65
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov ebx, eax
pop ecx
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, ebx
jmp 0x438a6b
xor eax, eax
mov eax, dword [eax + 0x18]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea edx, [ebp - 1]
mov ecx, eax
mov byte [eax + esi], 0
call fcn.00442730
cmp byte [ebp - 1], 0
mov esi, eax
je 0x438ae1
mov eax, dword [ebp - 0xc]
inc eax
push eax
call sub.MSVCRT.dll_atoi
pop ecx
movzx eax, ax
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.004385f0
mov esi, eax
jmp 0x43897c
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 1]
mov ecx, edi
call fcn.0044279f
cmp byte [ebp - 1], 0
je 0x438ae1
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebp - 0x18], ax
lea esi, [ebp - 0x28]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp + 8]
test eax, eax
je 0x438aed
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
leave
ret 4