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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x433024]
mov eax, dword [esp + 0x40]
test ebp, ebp
jne 0x430c04
mov eax, dword [eax + 8]
test eax, eax
je 0x430c60
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [eax + 8]
test edi, edi
je 0x430cc0
mov esi, dword [global___key]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
test esi, esi
je 0x430c72
mov edx, dword [esi]
cmp edi, edx
ja 0x430d40
lea esi, [esi + edi*4]
mov eax, dword [esi]
test eax, eax
jne 0x430bfc
mov eax, dword [esp + 0x40]
call dbg.emutls_alloc
mov dword [esi], eax
jmp 0x430bfc
mov eax, dword [esp + 0x40]
call dbg.emutls_alloc
mov ecx, dword [esp + 0x40]
mov dword [ecx + 8], eax
jmp 0x430bfc
lea eax, [edi + 0x21]
lea edx, [edi + 0x20]
mov dword [esp + 4], 4
mov dword [esp], eax
mov dword [esp + 0x18], edx
call sym._calloc
test eax, eax
mov esi, eax
mov edx, dword [esp + 0x18]
je 0x430e4b
mov dword [eax], edx
mov eax, dword [global___key]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x430c47
call ebp
jmp 0x430c47
mov edi, dword [0x433024]
test edi, edi
je 0x430ce6
mov esi, dword [global___once]
test esi, esi
je 0x430e10
lock add dword [0x43d3ec], 1
jne 0x430de2
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 8]
test edi, edi
je 0x430dc8
mov eax, dword [0x433024]
test eax, eax
je 0x430c0f
mov eax, 0xffffffff
lock xadd dword [0x43d3ec], eax
sub eax, 1
js 0x430c0f
mov eax, dword [0x43d3f0]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
sub esp, 0xc
jmp 0x430c0f
lea ecx, [edx + edx]
lea eax, [edi + 0x20]
mov dword [esp], esi
mov dword [esp + 0x1c], edx
cmp edi, ecx
cmova ecx, eax
lea eax, [ecx*4 + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
call sym._realloc
test eax, eax
mov esi, eax
je 0x430e4b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
sub ecx, edx
lea eax, [eax + edx*4 + 4]
shl ecx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._memset
jmp 0x430c9c
call dbg.emutls_init
mov dword [global___once], 1
mov edx, dword [0x433024]
test edx, edx
jne 0x430cd8
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 8]
test edi, edi
jne 0x430c0f
mov eax, dword [0x43d3e4]
lea edi, [eax + 1]
mov eax, dword [esp + 0x40]
mov dword [0x43d3e4], edi
mov dword [eax + 8], edi
jmp 0x430cf5
mov eax, dword [0x43d3f0]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x430ce6
lock sub dword [0x43d3ec], 1
jmp 0x430ce6
lock add dword [0x43302c], 1
je 0x430d9c
mov ebx, dword [global___once]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x430dab
lea esi, [esi]
mov dword [esp], 0
call esi
mov ecx, dword [global___once]
sub esp, 4
test ecx, ecx
je 0x430e30
jmp 0x430dab
call sym._abort