Function at 0x4000d1a0
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
mov eax, dword [0x40477460]
mov ecx, dword [eax + 0x30]
push ebx
mov ebx, dword [ecx + 0xc]
push esi
xor esi, esi
mov dword [esp + 0x50], edx
mov edx, dword [0x40075970]
push edi
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov dword [esp + 0x1c], edx
cmp edx, esi
je 0x4000d204
cmp edx, 0xeeeeeeee
jne 0x4000d213
mov dword [esp + 0xc], 0x7dff
xor ebx, ebx
jmp 0x4000d971
mov eax, dword [edx + 0xc4]
mov eax, dword [eax + 4]
xor edi, edi
cmp eax, esi
je 0x4000d26a
mov ecx, dword [eax + 8]
cmp ecx, esi
je 0x4000d239
lea esp, [esp]
mov eax, ecx
mov ecx, dword [eax + 8]
cmp ecx, esi
jne 0x4000d230
cmp eax, esi
je 0x4000d26a
lea ecx, [ecx]
mov ecx, dword [eax]
cmp dword [ecx + 0x80], 2
jne 0x4000d24c
inc edi
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x4000d240
cmp edi, 0x400
jbe 0x4000d26a
mov dword [esp + 0xc], 0x7d18
xor ebx, ebx
jmp 0x4000d971
cmp byte [edx + 0xd8], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], eax
je 0x4000d3ed
cmp dword [ecx + 0xc], 0x123
jne 0x4000d2a9
mov edx, dword [ebx + 0xd0]
mov dword [ecx + 0xc], edx
jmp 0x4000d3f2
mov ecx, dword [ecx]
cmp ecx, 0xc00000fd
jne 0x4000d2c2
mov dword [esp + 0xc], 0x7d19
xor ebx, ebx
jmp 0x4000d971
cmp ecx, 0xe06d7363
je 0x4000d3f2
mov ecx, dword [0x40477460]
mov edx, dword [ecx + 0x30]
mov edi, dword [edx + 0x10]
mov ecx, dword [edi + 0xc]
mov eax, ebx
mov esi, dword [eax + 0xd0]
mov eax, esi
and eax, 0x7ff
cmp dword [ecx + eax*8], esi
lea ebx, [ecx + eax*8]
jne 0x4000d2f9
mov ecx, dword [ebx + 4]
jmp 0x4000d317
push esi
push edi
call fcn.40008e00
test eax, eax
je 0x4000d32a
mov edx, dword [edi + 8]
mov eax, dword [eax]
and edx, esi
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x4000d31b
mov dword [ebx], esi
mov dword [ebx + 4], ecx
test ecx, ecx
jne 0x4000d32e
mov dword [esp + 0xc], 0x7d11
xor ebx, ebx
jmp 0x4000d971
xor ecx, ecx
jmp 0x4000d317
mov esi, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
xor ebx, ebx
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x4000d353
mov dword [esp + 0xc], 0x7d0c
jmp 0x4000d971
mov edx, dword [0x40477438]
mov ecx, eax
shr ecx, 0xc
mov edi, dword [ecx*4 + 0x40077248]
push 0x50
push ebx
and edi, 0xfffff000
push edx
add edi, eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x4000d3ce
mov ecx, esi
mov dword [esi + 4], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 1
mov dword [esi + 0x4c], ebx
mov dword [esi], vtable.SafeMachine::SfDasm.0
mov dword [esp + 0x40], esi
call fcn.40007f50
cmp eax, ebx
jne 0x4000d3db
mov esi, dword [esi + 0x48]
cmp esi, 0xfe000001
je 0x4000d3f2
xor eax, eax
cmp esi, 0xfe001000
sete al
lea eax, [eax*4 + 0x7d09]
mov dword [esp + 0xc], eax
jmp 0x4000d952
mov dword [esp + 0xc], 0x7d05
jmp 0x4000d971
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 8]
push ebx
push ecx
push ebx
mov ecx, eax
call edx
jmp 0x4000d3f2
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0xc]
add eax, 0xb8
mov dword [esp + 0x5c], eax
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esi]
mov ebx, dword [esi + 0xc]
mov edi, eax
mov eax, dword [0x40477424]
mov dword [esp + 0x30], edx
test eax, eax
je 0x4000d4b7
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4000d4b7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4000d4b7
mov eax, dword [0x40477438]
push 0x20
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [esi + 0x14]
mov dword [esi + 4], 0x3e8
mov dword [esi], 0x20
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], edi
test eax, eax
je 0x4000d491
add eax, 6
mov byte [eax - 5], 0
mov byte [eax - 6], 6
mov dword [eax - 4], ebx
je 0x4000d491
mov ecx, dword [esp + 0x30]
mov byte [eax + 1], 0
mov byte [eax], 6
mov dword [eax + 2], ecx
mov eax, dword [0x40477424]
mov edx, dword [eax + 0xc]
test dword [esi + 0xc], edx
je 0x4000d4a8
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [0x40477438]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push 8
push ecx
call fcn.40001d00
test al, al
jne 0x4000d4dc
mov dword [esp + 0xc], 0x7d22
jmp 0x4000d950
mov eax, dword fs:[0]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xb8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4000d509
mov dword [esp + 0xc], 0x7d02
jmp 0x4000d950
mov eax, dword [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ebx, [ecx + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], edx
test eax, eax
jne 0x4000d5d0
mov ecx, dword [0x40477460]
mov eax, dword [ecx + 0x50]
mov edi, str.ntdll.dll
call fcn.40014090
mov esi, eax
test esi, esi
je 0x4000d5d2
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [esi + 0x17], 0
mov ecx, dword [esi + 0x38]
je 0x4000d586
test ecx, ecx
je 0x4000d582
mov dx, word [ecx + 0x16]
shr dx, 0xd
and dl, 1
je 0x4000d582
mov esi, dword [esi + 0x20]
sub esi, eax
add dword [ebx], esi
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
jmp 0x4000d5d2
mov esi, ecx
jmp 0x4000d5ab
test ecx, ecx
je 0x4000d5a8
mov cx, word [ecx + 0x16]
shr cx, 0xd
and cl, 1
je 0x4000d5a8
mov esi, dword [esi + 0x20]
sub esi, eax
add dword [ebx], esi
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
jmp 0x4000d5d2
mov esi, dword [esi + 0x38]
test esi, esi
je 0x4000d5c0
mov esi, dword [esi + 0x34]
sub esi, eax
add dword [ebx], esi
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
jmp 0x4000d5d2
xor esi, esi
sub esi, eax
add dword [ebx], esi
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
jmp 0x4000d5d2
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov ecx, 0x4000d040
cmp dword [edx + 4], ecx
je 0x4000d5ef
mov eax, dword [eax]
mov edx, dword [eax]
cmp dword [edx + 4], ecx
jne 0x4000d5e2
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0xb0]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [ecx], ebx
mov edx, dword [esi + 0xb0]
mov dword [edx], eax
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0x34]
push edx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], 0x7d03
cmp eax, dword [esi + 0xb4]
je 0x4000d917
push 8
push ebx
call fcn.40001d00
test al, al
je 0x4000d917
jmp 0x4000d650
cmp dword [ebx], 0xffffffff
je 0x4000d905
cmp dword [esp + 0x2c], 0x400
jae 0x4000d90d
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x34]
mov ecx, 0x10
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, 1
add dword [esp + 0x2c], ecx
cmp eax, dword [edx]
jne 0x4000d6c5
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [eax + 0xf0], ecx
test byte [edx + 4], 6
jne 0x4000d8b6
mov eax, dword [esp + 0x48]
mov ebx, dword [ebx]
add eax, ecx
mov dword [esp + 0x48], eax
cmp eax, 0x100
jbe 0x4000d8a4
mov dword [esp + 0xc], 0x7d18
jmp 0x4000d905
mov ecx, eax
shr ecx, 0xc
mov ecx, dword [ecx*4 + 0x40077248]
and ecx, 0xfffff000
add ecx, eax
push 1
push ecx
call fcn.40001d00
test al, al
je 0x4000d8c6
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 0x10], edx
mov eax, dword [ebx + 4]
lea edx, [esp + 0x14]
push edx
push 2
push ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0xa0], eax
mov eax, dword [0x40477460]
mov eax, dword [eax + 0x30]
lea ecx, [esp + 0x6c]
push ecx
push eax
call fcn.4000de90
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, 0x7d00
je 0x4000d7a2
mov edx, dword [0x40075970]
push edx
call edi
test eax, eax
je 0x4000d8d0
cmp eax, 0xeeeeeeee
je 0x4000d8d0
cmp dword [eax + 0xd0], 0
jne 0x4000d8d0
cmp byte [eax + 0xd8], 0
jne 0x4000d781
add eax, 8
jmp 0x4000d786
mov eax, 0x4047730c
mov dword [eax + 0xa0], esi
mov dword [eax + 0x88], 5
add eax, 0x44
push eax
call fcn.40001af0
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x4000d7c7
mov eax, dword [esp + 0x98]
cmp eax, 1
je 0x4000d7c0
cmp eax, 2
jne 0x4000d8d8
mov ebx, dword [ebx]
jmp 0x4000d8a4
cmp eax, 0x11
jne 0x4000d834
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0xac], 0
je 0x4000d834
mov ecx, dword [0x40075970]
mov esi, 0x7d00
push ecx
mov dword [esp + 0x10], esi
call edi
test eax, eax
je 0x4000d8d0
cmp eax, 0xeeeeeeee
je 0x4000d8d0
cmp dword [eax + 0xd0], 0
jne 0x4000d8d0
cmp byte [eax + 0xd8], 0
jne 0x4000d823
add eax, 8
mov dword [eax + 0x88], 0x10
jmp 0x4000d892
mov eax, 0x4047730c
mov dword [eax + 0x88], 0x10
jmp 0x4000d892
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xb8]
mov esi, 0x7d00
mov dword [esp + 0xc], esi
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4000d859
mov eax, dword [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [0x40075970]
push eax
call edi
test eax, eax
je 0x4000d8d0
cmp eax, 0xeeeeeeee
je 0x4000d8d0
cmp dword [eax + 0xd0], 0
jne 0x4000d8d0
cmp byte [eax + 0xd8], 0
jne 0x4000d883
add eax, 8
jmp 0x4000d888
mov eax, 0x4047730c
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x88], ecx
mov dword [eax + 0xa0], esi
add eax, 0x44
push eax
call fcn.40001af0
add esp, 4
push 8
push ebx
call fcn.40001d00
test al, al
jne 0x4000d650
jmp 0x4000d905
call fcn.40011aa0
push 0x7d0a
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0xc], 0x7d22
jmp 0x4000d905
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test eax, eax
jne 0x4000d8fd
mov edx, dword [esp + 0x20]
test byte [edx + 4], 1
jne 0x4000d8fd
mov eax, dword [0x40477460]
mov eax, dword [eax + 0x30]
mov esi, dword [esp + 0x5c]
call fcn.4000f0b0
mov dword [esp + 0xc], eax
jmp 0x4000d905
mov dword [esp + 0xc], 0x7d12
cmp dword [esp + 0x2c], 0x400
jne 0x4000d917
mov dword [esp + 0xc], 0x7d1f
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
call fcn.4000b5d0
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [edx]
call fcn.4000b5d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [edx + 0xb0]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x4000d963
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
cmp dword [esp + 0xc], 0x7d00
je 0x4000da65
mov eax, dword [esp + 0xc]
add eax, 0xffff82fd
cmp eax, 0x1f
ja case.0x4000d986.32004
movzx ecx, byte [eax + 0x4000daa4]
jmp dword [ecx*4 + 0x4000da8c]
mov dword [esp + 0x14], 2
mov dword [esp + 0xc], 0x7d00
jmp 0x4000d9f5
mov dword [esp + 0x14], 8
mov dword [esp + 0xc], 0x7d00
jmp 0x4000d9f5
mov dword [esp + 0x14], 9
mov dword [esp + 0xc], 0x7d00
jmp 0x4000d9f5
mov dword [esp + 0x14], 0xa
mov dword [esp + 0xc], 0x7d00
jmp 0x4000d9f5
mov dword [esp + 0x14], 0xc
mov dword [esp + 0xc], 0x7d00
jmp 0x4000d9f5
cmp dword [esp + 0x14], ebx
jne 0x4000d9f5
mov dword [esp + 0x14], 5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xb8]
mov dword [esp + 0x38], eax
cmp eax, ebx
je 0x4000da11
mov eax, dword [esp + 0x38]
mov dword fs:[0], eax
cmp byte [esp + 0x13], 0
jne 0x4000da54
mov eax, edx
cmp byte [eax + 0xd8], 0
jne 0x4000da54
mov ecx, dword [0x40477460]
mov ebx, dword [ecx + 0x30]
call fcn.4000de10
cmp eax, 0x7d00
jne 0x4000da46
mov eax, ebx
call fcn.4000f100
cmp eax, 0x7d00
jne 0x4000da46
cmp dword [esp + 0xc], 0x7d00
jne 0x4000da54
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.4000f040
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4000da7f
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8