Function at 0x1f019540
Capabilities:
Get thread local storage value
Set thread local storage value
Suspend thread
Terminate process

Disassembly:
mov eax, dword [0x1f0837c0]
sub esp, 8
push eax
cmp eax, 0x40
jae 0x1f019555
call section..text
jmp 0x1f01955b
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebp
mov ebp, eax
mov dword [esp + 4], eax
test ebp, ebp
je 0x1f01985c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0xff450020
mov dword [ecx], 1
cmp eax, 4
ja case.default.0x1f019586
jmp dword [eax*4 + 0x1f019864]
push edi
call fcn.1f034080
mov edi, dword [ebp + 4]
mov dword [esp + 0xc], edi
test edi, edi
je 0x1f01980a
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0x10]
test eax, eax
je 0x1f01980a
push ebx
push esi
jmp 0x1f0195c4
mov ebp, dword [esp + 0x10]
mov esi, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x1e00
push esi
call ebx
test eax, eax
jne 0x1f0197f7
mov edx, dword [esi + 0x38]
push 0x1b78
push edx
call ebx
test eax, eax
jne 0x1f0197f7
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0
push esi
push edi
push ebp
call fcn.1f018e10
mov eax, dword [esi + 0x4c]
mov ebp, dword [esi + 0x38]
add esp, 0x1c
test eax, eax
je 0x1f019627
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x4c], 0
cmp dword [esi + 0xa8], 0
je 0x1f01968f
mov ecx, dword [esi + 0x38]
movzx ebx, byte [ecx + 0xb5]
imul ebx, ebx, 0xa4
lea edi, [esi + 0xb0]
add ebx, edi
cmp edi, ebx
jae 0x1f019685
lea esp, [esp]
mov eax, dword [edi + 0x90]
xor ecx, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
cmp eax, ecx
je 0x1f01967b
mov edx, dword [0x1f0837b4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x90], 0
add edi, 0xa4
cmp edi, ebx
jb 0x1f019650
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0x1afc]
test eax, eax
je 0x1f0196b2
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x1afc], 0
cmp dword [ebp + 0x1b28], 0
je 0x1f0196e1
cmp dword [esi + 0x50], 0
je 0x1f0196e1
mov ecx, dword [esi + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x50]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 4], 0
jne 0x1f019704
cmp dword [ebp + 0x9c], 0
jne 0x1f019704
mov ecx, dword [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp + 0xa8]
lea ebx, [ebp + 0xa8]
cmp edx, 1
jne 0x1f019722
mov eax, dword [ebp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f019734
call section..text
jmp 0x1f01973a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1f0837c4]
mov edi, eax
lea eax, [edi + 1]
push eax
push ecx
cmp ecx, 0x40
jae 0x1f019753
call fcn.1f001021
jmp 0x1f019759
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx + 0x10]
test ecx, ecx
je 0x1f019787
mov eax, dword [eax + 4]
cmp dword [ecx], esi
lea ecx, [eax + edx]
mov edx, dword [ecx]
jne 0x1f019781
mov eax, dword [ecx + 0x10]
mov edx, dword [edx + 0x20]
push eax
call edx
jmp 0x1f019787
mov eax, dword [edx + 0x24]
push esi
call eax
mov eax, dword [0x1f0837c4]
push edi
push eax
cmp eax, 0x40
jae 0x1f01979a
call fcn.1f001021
jmp 0x1f0197a0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call fcn.1f001055
mov ecx, ebx
or edx, 0xffffffff
lock xadd dword [ecx], edx
mov eax, dword [ebx]
test eax, eax
jge 0x1f0197bc
mov dword [ebx], 0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1f0197f3
cmp dword [ebp + 0xa0], ecx
je 0x1f0197f3
cmp dword [ebp + 0x1b2c], ecx
jne 0x1f0197f3
movzx edx, byte [ebp + 0xb4]
push edx
lea eax, [ebp + 8]
mov dword [ebp + 0xa0], ecx
mov ecx, dword [ebp + 0xb0]
push eax
push ecx
call fcn.1f03f910
add esp, 0xc
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov eax, dword [eax + edi + 0x10]
test eax, eax
jne 0x1f0195c0
pop esi
pop ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop ebp
add esp, 8
ret
push 0
mov dword [ebp + 0x74], 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop ebp
add esp, 8
ret
mov dword [ecx], 2
pop ebp
add esp, 8
ret
mov dword [ecx], 3
pop ebp
add esp, 8
ret
mov dword [ecx], 1
pop ebp
add esp, 8
ret