Function at 0x401510
Capabilities:
Create process on windows
Create process suspended
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412bfc
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.00405610
add esp, 0xc
push 0x400
lea edx, [ebp - 0x810]
push edx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x8f4], eax
push str.DHPlayerInstallLocation.txt
push 0x400
lea eax, [ebp - 0x810]
push eax
call fcn.00406392
add esp, 0xc
mov dword [ebp - 0x878], 0
push 0x417d34
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x878]
push edx
call fcn.004064b3
add esp, 0xc
mov dword [ebp - 0x8f8], eax
cmp dword [ebp - 0x878], 0
je 0x401c01
push 2
push 0
mov eax, dword [ebp - 0x878]
push eax
call fcn.004067ae
add esp, 0xc
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.00406d98
add esp, 4
mov dword [ebp - 0x888], eax
cmp dword [ebp - 0x888], 0
jge 0x40160f
mov edx, dword [ebp - 0x878]
push edx
call fcn.00406e19
add esp, 4
xor eax, eax
jmp 0x401c03
mov eax, dword [ebp - 0x888]
add eax, 0x64
push eax
call fcn.00406e92
add esp, 4
mov dword [ebp - 0x884], eax
cmp dword [ebp - 0x884], 0
jne 0x401646
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.00406e19
add esp, 4
xor eax, eax
jmp 0x401c03
mov edx, dword [ebp - 0x888]
add edx, 0x64
push edx
push 0
mov eax, dword [ebp - 0x884]
push eax
call fcn.00405610
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.004067ae
add esp, 0xc
mov edx, dword [ebp - 0x878]
push edx
mov eax, dword [ebp - 0x888]
push eax
push 1
mov ecx, dword [ebp - 0x884]
push ecx
call fcn.00407076
add esp, 0x10
mov dword [ebp - 0x8dc], eax
mov edx, dword [ebp - 0x8dc]
cmp edx, dword [ebp - 0x888]
je 0x4016cc
mov eax, dword [ebp - 0x884]
push eax
call fcn.00405f57
add esp, 4
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.00406e19
add esp, 4
xor eax, eax
jmp 0x401c03
push str.DHPlayerKeeper.exe
mov edx, dword [ebp - 0x888]
add edx, 0x64
push edx
mov eax, dword [ebp - 0x884]
push eax
call fcn.00407126
add esp, 0xc
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.00406e19
add esp, 4
push 0
mov edx, dword [ebp - 0x884]
push edx
lea eax, [ebp - 0x828]
push eax
call fcn.00401210
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x884]
push ecx
call fcn.00405f57
add esp, 4
mov dword [ebp - 0x89c], 0
mov dword [ebp - 0x890], 0
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x8d4], 1
mov dword [ebp - 0x8a0], 0
push str.explorer.exe
lea ecx, [ebp - 0x858]
call fcn.00401da0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x8a0]
push edx
lea eax, [ebp - 0x858]
push eax
call fcn.00401370
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x401796
mov dword [ebp - 0x8a8], 1
jmp 0x4017a0
mov dword [ebp - 0x8a8], 0
mov dl, byte [ebp - 0x8a8]
mov byte [ebp - 0x87d], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x858]
call fcn.00401cd0
movzx eax, byte [ebp - 0x87d]
test eax, eax
je 0x4017ed
mov dword [ebp - 0x8d8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401cd0
mov eax, dword [ebp - 0x8d8]
jmp 0x401c03
lea ecx, [ebp - 0x8d4]
push ecx
mov edx, dword [ebp - 0x8a0]
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x40182c
mov dword [ebp - 0x8d0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401cd0
mov eax, dword [ebp - 0x8d0]
jmp 0x401c03
mov eax, dword [ebp - 0x8a0]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x88c], 0
jne 0x401876
mov dword [ebp - 0x8e0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401cd0
mov eax, dword [ebp - 0x8e0]
jmp 0x401c03
lea ecx, [ebp - 0x89c]
push ecx
push 2
mov edx, dword [ebp - 0x88c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4018c4
mov eax, dword [ebp - 0x88c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x8ac], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401cd0
mov eax, dword [ebp - 0x8ac]
jmp 0x401c03
lea ecx, [ebp - 0x890]
push ecx
push 1
push 1
push 0
push 0x2000000
mov edx, dword [ebp - 0x89c]
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4018ec
jmp 0x401bad
mov dword [ebp - 0x894], 0
push 0
mov eax, dword [ebp - 0x890]
push eax
lea ecx, [ebp - 0x894]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x401915
jmp 0x401bad
push 0x208
call fcn.00403069
add esp, 4
mov dword [ebp - 0x8b0], eax
mov edx, dword [ebp - 0x8b0]
mov dword [ebp - 0x87c], edx
push 0x208
push 0
mov eax, dword [ebp - 0x87c]
push eax
call fcn.00405610
add esp, 0xc
lea ecx, [ebp - 0x828]
call fcn.00401c70
push eax
push 0x104
mov ecx, dword [ebp - 0x87c]
push ecx
call fcn.0040718f
add esp, 0xc
mov edx, dword [ebp - 0x87c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4019b2
mov eax, dword [ebp - 0x894]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 0x87c]
mov dword [ebp - 0x8b4], ecx
mov edx, dword [ebp - 0x8b4]
push edx
call fcn.00403064
add esp, 4
mov dword [ebp - 0x87c], 0
jmp 0x401bad
lea eax, [ebp - 0x828]
push eax
push 0x417d6c
lea ecx, [ebp - 0x870]
push ecx
call fcn.004027d0
add esp, 0xc
mov dword [ebp - 0x8b8], eax
mov edx, dword [ebp - 0x8b8]
mov dword [ebp - 0x8bc], edx
mov byte [ebp - 4], 2
push 0x417d68
mov eax, dword [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x840]
push ecx
call fcn.00402890
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x870]
call fcn.00401cd0
lea ecx, [ebp - 0x840]
call fcn.00401c50
add eax, 1
mov dword [ebp - 0x8a4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x8a4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403069
add esp, 4
mov dword [ebp - 0x8c0], eax
mov eax, dword [ebp - 0x8c0]
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x8a4]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x898]
push edx
call fcn.00405610
add esp, 0xc
lea ecx, [ebp - 0x840]
call fcn.00401c70
push eax
mov eax, dword [ebp - 0x8a4]
push eax
mov ecx, dword [ebp - 0x898]
push ecx
call fcn.0040718f
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x93c]
push edx
call fcn.00405610
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x8f0], eax
mov dword [ebp - 0x8ec], eax
mov dword [ebp - 0x8e8], eax
mov dword [ebp - 0x8e4], eax
mov dword [ebp - 0x93c], 0x44
mov dword [ebp - 0x8c4], 0x430
lea ecx, [ebp - 0x8f0]
push ecx
lea edx, [ebp - 0x93c]
push edx
mov eax, dword [ebp - 0x87c]
push eax
mov ecx, dword [ebp - 0x894]
push ecx
mov edx, dword [ebp - 0x8c4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x898]
push eax
push 0
mov ecx, dword [ebp - 0x890]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x401b1b
mov byte [ebp - 0x871], 1
jmp 0x401b22
mov byte [ebp - 0x871], 0
mov dl, byte [ebp - 0x871]
mov byte [ebp - 0x87e], dl
mov eax, dword [ebp - 0x894]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x87c], 0
je 0x401b7a
mov ecx, dword [ebp - 0x87c]
mov dword [ebp - 0x8c8], ecx
mov edx, dword [ebp - 0x8c8]
push edx
call fcn.00403064
add esp, 4
mov eax, dword [ebp - 0x898]
mov dword [ebp - 0x8cc], eax
mov ecx, dword [ebp - 0x8cc]
push ecx
call fcn.00403064
add esp, 4
movzx edx, byte [ebp - 0x87e]
test edx, edx
jne 0x401b96
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.00401cd0
jmp 0x401bad
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.00401cd0
xor eax, eax
jne 0x4018c4
cmp dword [ebp - 0x890], 0
je 0x401bc3
mov ecx, dword [ebp - 0x890]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x88c], 0
je 0x401bd9
mov edx, dword [ebp - 0x88c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x89c], 0
je 0x401bef
mov eax, dword [ebp - 0x89c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401cd0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040301b
mov esp, ebp
pop ebp
ret