Function at 0x4082a0
Capabilities:
Accept command line arguments
Check if file exists
Check mutex on windows
Create thread
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442b59
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x459004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xb4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xa4], edi
push eax
push 8
mov dword [ebp - 0x8c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408333
lea eax, [ebp - 0x94]
push eax
push 4
lea eax, [ebp - 0x90]
push eax
push 0x14
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x408344
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x408ac1
lea eax, [ebp - 0xc0]
mov dword [0x45b900], 0
push eax
push 0x20019
push 0
push str.SOFTWAREAM
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x408384
test eax, eax
jne 0x408384
mov eax, dword [0x45b900]
jmp 0x40838e
mov eax, 1
mov dword [0x45b900], eax
mov esi, dword [ebp - 0xc0]
mov dword [ebp - 0x8c], esi
test eax, eax
jne 0x40856e
mov dword [0x45b900], eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xc4], 4
push eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], 4
push eax
push 0
push str.LFCE
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4083ef
mov dword [ebp - 0xa8], 0
jmp 0x4083fc
cmp dword [ebp - 0xa8], 1
je 0x40877d
lea eax, [ebp - 0xcc]
mov dword [0x45b900], 0
push eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xcc], 4
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 4
push eax
push 0
push 0x451488
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0xac]
xor ecx, ecx
cmp eax, 2
mov dword [0x45b900], 0
mov eax, dword [0x45b8f8]
cmove esi, ecx
mov dword [ebp - 0xd4], 4
mov ecx, 1
mov dword [ebp - 0xac], esi
test esi, esi
mov dword [ebp - 0xd8], 4
cmovne eax, ecx
mov dword [0x45b8f8], eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0x45148c
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xb0]
xor edx, edx
cmp eax, 2
mov dword [0x45b900], edx
mov eax, dword [0x45b8f4]
cmove ecx, edx
mov dword [ebp - 0xdc], 4
test ecx, ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xb0], ecx
mov ecx, 1
cmovne eax, ecx
mov dword [ebp - 0xb8], 4
mov dword [0x45b8f4], eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xb8]
push eax
push edx
push 0x451490
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x90]
xor edx, edx
push dword [ebp - 0x8c]
cmp eax, 2
mov eax, dword [0x45b8f0]
cmove ecx, edx
test ecx, ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
mov ecx, 1
cmovne eax, ecx
mov dword [0x45b8f0], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40856e
cmp dword [ebp - 0x9c], 0
jbe 0x40856e
cmp dword [ebp - 0x94], 0
ja 0x40877d
push ecx
call fcn.00401900
add esp, 4
test al, al
je 0x40877d
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x4085ad
cmp dword [ebp - 0x90], eax
jne 0x40877d
mov eax, dword [ebp - 0xb4]
cmp eax, 1
jle 0x4085bf
cmp dword [edi + eax*4 - 4], 0
jne 0x4085f9
mov ecx, dword [edi]
mov eax, 0x453c44
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4085ec
test dx, dx
je 0x4085e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4085ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x4085c6
xor eax, eax
jmp 0x4085f1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408ac1
mov ecx, dword [edi]
mov eax, 0x453c44
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408626
test dx, dx
je 0x408622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408626
add eax, 4
add ecx, 4
test dx, dx
jne 0x408600
xor eax, eax
jmp 0x40862b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40863b
xor cl, cl
call fcn.00402a90
jmp 0x408ad5
call fcn.00401b10
cmp dword [ebp - 0xb4], 2
jl 0x408ad5
mov ecx, dword [edi]
mov eax, 0x453c4c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40867a
test dx, dx
je 0x408676
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40867a
add eax, 4
add ecx, 4
test dx, dx
jne 0x408654
xor eax, eax
jmp 0x40867f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408ad5
mov edx, dword [edi + 4]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], eax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00409b40
mov edi, dword [ebp - 0x2c]
xor esi, esi
cmp dword [ebp - 0x1c], esi
jbe 0x408713
cmp dword [ebp - 0x18], 8
setae cl
mov byte [ebp - 0x85], cl
test cl, cl
lea eax, [ebp - 0x2c]
cmovne eax, edi
movzx eax, word [eax + esi*2]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x8c]
push eax
push 1
lea eax, [ebp - 0x94]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x408742
test byte [ebp - 0x8c], 4
je 0x408742
mov cl, byte [ebp - 0x85]
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x4086d0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x408793
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x408789
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408af5
jmp 0x408789
cmp byte [ebp - 0x85], 0
je 0x40877d
mov eax, dword [ebp - 0x18]
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x408773
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408af5
push ecx
push edi
call fcn.0040a3d8
add esp, 8
xor cl, cl
call fcn.00403940
jmp 0x408ad5
push ecx
push edi
call fcn.0040a3d8
add esp, 8
push 0
call fcn.0042736c
mov ecx, eax
mov eax, 0x91a2b3c5
imul ecx
mov eax, dword [ebp - 0xa4]
add edx, ecx
sar edx, 0xb
mov esi, edx
push dword [eax + 4]
shr esi, 0x1f
add esi, edx
call fcn.0042828f
add esp, 8
cmp esi, eax
jl 0x408ad5
push str.hookDll.dll
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x4087e5
call esi
cmp eax, 2
je 0x40877d
xor edx, edx
lea ecx, [ebp - 0x2c]
call fcn.00406e00
push eax
mov ecx, 0x45b904
call fcn.00409400
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x408834
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40882a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408afa
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov edi, 1
lea ecx, [ebp - 0x2c]
mov edx, edi
call fcn.00406e00
push eax
mov ecx, 0x45b934
call fcn.00409400
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x408888
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40887e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aff
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov edx, 2
lea ecx, [ebp - 0x2c]
call fcn.00406e00
push eax
mov ecx, 0x45b91c
call fcn.00409400
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4088da
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4088d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b04
push ecx
push edx
call fcn.0040a3d8
add esp, 8
xor eax, eax
cmp dword [0x45b944], eax
je 0x4088ed
cmp dword [0x45b8f8], eax
cmove eax, edi
cmp dword [0x45b92c], 0
je 0x408900
cmp dword [0x45b8f4], 0
jne 0x408900
inc eax
cmp dword [0x45b914], 0
je 0x408913
cmp dword [0x45b8f0], 0
jne 0x408913
inc eax
test eax, eax
je 0x40877d
push str.Helper.Mutex.Unique
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x45b8e8], eax
call esi
cmp eax, 0xb7
je 0x408ad5
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00406ce0
test al, al
je 0x408a89
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 0
push 2
push eax
call fcn.00410137
lea eax, [ebp - 0x54]
push eax
call fcn.0041024c
push 8
mov byte [ebp - 4], 2
lea esi, [ebp - 0x54]
lea edi, [ebp - 0xa4]
call fcn.0040a409
add esp, 0x10
mov dword [ebp - 0x94], eax
mov dword [eax], esi
mov dword [eax + 4], edi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push 0x40a2f0
push 0
push 0
call fcn.00427a11
add esp, 0x18
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x408b42
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x408b09
push ecx
push eax
call fcn.0040feb5
add esp, 8
test eax, eax
jne 0x408b10
lea eax, [ebp - 0x84]
mov byte [ebp - 0x94], 0
xorps xmm0, xmm0
mov dword [ebp - 0x98], eax
push eax
movlpd qword [ebp - 0xa0], xmm0
call fcn.00410156
add esp, 4
test eax, eax
jne 0x408b16
mov byte [ebp - 0x94], 1
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0xbc], 0x64
push eax
call fcn.004098b0
cmp eax, 1
je 0x408b1c
cmp byte [ebp - 0x94], 0
je 0x408a64
push dword [ebp - 0x98]
call fcn.0041017b
add esp, 4
cmp dword [ebp - 0x9c], 0
jne 0x408b3d
lea eax, [ebp - 0x54]
push eax
call fcn.0041022f
lea eax, [ebp - 0x84]
push eax
call fcn.0041010d
add esp, 8
mov eax, dword [0x45b8e8]
test eax, eax
je 0x408ad5
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x45b8e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x45b8e8], 0
jmp 0x408ad5
push 0
push str.Info
push str.No_function
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a3ca
mov esp, ebp
pop ebp
ret 0x10
call fcn.0042731b
call fcn.0042731b
call fcn.0042731b
call fcn.0042731b
push 1
call fcn.0040b734
push eax
call fcn.0040b707
push eax
call fcn.0040b707
push str.Timeout
lea ecx, [ebp - 0xe8]
call fcn.004012c0
push 0x457bc8
lea eax, [ebp - 0xe8]
push eax
call fcn.00423dce
call fcn.00426fc3
push 6
mov dword [ebp - 0x9c], 0
call fcn.0040b734
int3