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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x47ca30]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x3c], eax
mov byte [esp + 0x18], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x30]
push ebx
mov dword [esp + 0x44], eax
mov ebx, ecx
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x38]
push esi
mov dword [esp + 0x74], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x84], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
cmp byte [ecx], al
jne 0x430b60
mov ecx, eax
mov dword [edi], edx
mov dword [edi + 4], ecx
jmp 0x431196
push dword [ebx + 0x1dc]
lea esi, [ebx + 0x1dc]
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x430b8f
mov eax, dword [esp + 0x30]
mov dword [edi], 0
mov dword [edi + 4], eax
jmp 0x431196
push esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x430ba1
call fcn.0042da60
test byte [ebp + 0x3c], 4
je 0x430bc3
mov eax, dword [ebp + 0x18]
xor eax, dword [ebx + 0x110]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [ebx + 0x114]
mov dword [esp + 0x38], eax
jmp 0x430bd1
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
push dword [ebx + 0x1d8]
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x24], 0
mov ecx, dword [eax]
sub ecx, dword [ebx + 0x120]
mov eax, dword [eax + 4]
sbb eax, dword [ebx + 0x124]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x90], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x430caa
call fcn.0042b1a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x430caa
push dword [ebx + 0x1d4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x430c6c
mov ecx, dword [edx + 0x20]
cmp ecx, dword [ebx + 0x22c]
je 0x430c84
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push 0x28
call fcn.0045acd7
add esp, 4
test eax, eax
je 0x430c8e
push ebx
mov ecx, eax
call fcn.0042f500
jmp 0x430c90
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x430caa
xor eax, eax
push eax
push dword [ebx + 0x1d4]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x430caa
call fcn.0042da60
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
jne 0x430e2f
call fcn.0042ccd0
push dword [esp + 0x18]
mov ecx, eax
call fcn.0042c660
mov dword [esp + 0x10], eax
call fcn.004334f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x430e2f
test ecx, ecx
je 0x430e2f
cmp byte [ecx], 0
je 0x430e2f
call fcn.004334f0
push dword [esp + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x430d12
call fcn.0042da60
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [ebx + 0x18]
push edi
call eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x80]
push ecx
lea ecx, [ebx + 0xb0]
call fcn.004208e0
mov esi, dword [esp + 0x7c]
lea ecx, [ebx + 0xb0]
cmp esi, dword [ecx]
jne 0x430d69
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
push eax
call fcn.00432a70
add esp, 4
mov ecx, eax
call fcn.0042dbe0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x430e1a
push 0x40e2e4
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.0041b5e0
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x18], eax
call fcn.004148a0
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x94]
call fcn.00423440
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x60]
add esp, 4
mov byte [esp + 0x74], 0
mov edx, esi
push dword [esp + 0x74]
push eax
call fcn.00434ce0
add esp, 8
cmp eax, esi
jne 0x430e09
sub esi, dword [esp + 0x5c]
test esi, 0xfffffff8
mov esi, dword [esp + 0x14]
je 0x430dfe
push 0x2c
mov ecx, esi
call fcn.004225a0
push dword [esp + 0x10]
mov ecx, esi
call fcn.00413ff0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x430e1a
push eax
call fcn.0045ad4d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x218], 0xf
mov dword [esp + 0x214], 0
mov byte [esp + 0x204], 0
test byte [eax], 3
je 0x430fa7
mov eax, dword [esp + 0x20]
mov byte [esp + 0xf], 0
test eax, eax
je 0x430e7b
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.0042f770
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x430e9b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x30]
mov byte [esp + 0x13], 1
push eax
mov ecx, ebx
call fcn.00430950
mov ecx, eax
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x430ee9
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [ebp + 0x3c]
push dword [esp + 0x8c]
push dword [esp + 0x70]
push dword [esp + 0x68]
push dword [esp + 0x74]
push dword [ebp + 0x28]
push dword [esp + 0x60]
push dword [esp + 0x68]
push dword [esp + 0x64]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0x54]
call fcn.0042ec90
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x164]
test al, 8
je 0x430f37
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x4c]
cmp cl, 0x58
push eax
movzx eax, cl
mov ecx, 0x42
cmove eax, ecx
mov ecx, ebx
movzx eax, al
push eax
lea eax, [esp + 0x248]
push eax
call fcn.004311b0
push eax
lea ecx, [esp + 0x208]
call fcn.00421c80
lea ecx, [esp + 0x23c]
call fcn.00413fc0
cmp byte [esp + 0xf], 0
je 0x430f45
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x214], 0
je 0x430fa7
cmp dword [0x482a0c], 2
jg 0x430f8c
mov eax, 2
lea ecx, [esp + 0xa0]
push eax
push 0x745
push 0x40e410
mov dword [esp + 0x28], eax
call fcn.00419d30
lea ecx, [esp + 0x204]
add eax, 8
push ecx
push eax
call fcn.00416480
add esp, 8
mov eax, dword [esp + 0x1c]
test al, 2
je 0x430fab
and eax, 0xfffffffd
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c], eax
call fcn.00419e30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
cmp dword [ebx + 0x148], ecx
jne 0x4310d1
mov dword [esp + 0x21c], 0
mov dword [esp + 0x220], 0
mov dword [esp + 0x238], 0xf
mov dword [esp + 0x234], 0
mov byte [esp + 0x224], 0
test al, 0x10
je 0x430fff
lea ecx, [esp + 0x150]
call fcn.00419e30
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call eax
push dword [esp + 0x34]
lea eax, [ebx + 0x14c]
push eax
call fcn.004202a0
mov edx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
add esp, 8
mov byte [esp + 0xf], al
mov eax, dword [ebx + 0x128]
mov dword [esp + 0x24], eax
test eax, eax
je 0x431044
push 1
lea ecx, [eax + 4]
push ecx
call edx
mov eax, dword [esp + 0x24]
mov edx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esp + 0x21c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x21c], eax
test ecx, ecx
je 0x431079
lea eax, [ecx + 4]
push 0xffffffffffffffff
push eax
call edx
dec eax
jne 0x431079
mov ecx, dword [esp + 0x24]
add ecx, 4
je 0x431079
add ecx, 0xfffffffc
je 0x431079
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebx + 0x12c]
lea ecx, [esp + 0x224]
mov dword [esp + 0x220], eax
lea eax, [ebx + 0x130]
cmp ecx, eax
je 0x4310a1
push 0xffffffffffffffff
push 0
push eax
call fcn.00414ae0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0xf], 0
je 0x4310c5
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x4310c5
push eax
call dword [esp + 0x224]
add esp, 4
lea ecx, [esp + 0x21c]
call fcn.00421e60
mov eax, dword [esp + 0x28]
test byte [eax], 4
je 0x431123
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x431123
push dword [ebp + 0x3c]
mov edx, dword [esp + 0x4c]
cmp dl, 0x58
push dword [esp + 0x5c]
push dword [esp + 0x54]
push dword [esp + 0x60]
push dword [ebp + 0x28]
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x50]
push eax
movzx eax, dl
mov edx, 0x42
cmove eax, edx
movzx eax, al
push eax
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call ecx
add esp, 0x30
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43113f
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.0042f8d0
cmp dword [esp + 0x218], 0x10
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
jb 0x431165
push dword [esp + 0x204]
call fcn.0045ad4d
add esp, 4
push 0
push dword [esi]
mov dword [esp + 0x220], 0xf
mov dword [esp + 0x21c], 0
mov byte [esp + 0x20c], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x431196
call fcn.0042da60
mov ecx, dword [esp + 0x254]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045ed71
mov esp, ebp
pop ebp
ret 0x38