Function at 0x401be0
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create process on windows
Delete file
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x864
mov eax, dword [0x40b0e0]
xor eax, esp
push ebx
push esi
mov dword [esp + 0x868], eax
lea eax, [esp + 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.mdxweb_shellopencommand
push 0x80000000
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jne 0x401d49
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push 0x40917c
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d3a
lea edx, [esp + 0x68]
push str..exe
push edx
call fcn.00402bb0
add esp, 8
cmp eax, ebx
je 0x401c76
mov byte [eax + 4], bl
cmp byte [esp + 0x68], 0x22
jne 0x401cad
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401c84
sub eax, edx
dec eax
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6d]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.004021e0
mov edx, dword [esp + 0x18]
add esp, 0xc
mov byte [esp + edx + 0x68], bl
push 0x400
lea eax, [esp + 0x46c]
push eax
push ebx
call esi
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x46c]
push edx
call section..text
add esp, 8
cmp eax, ebx
jg 0x401d3a
lea eax, [esp + 0x68]
push 0x5c
push eax
call fcn.00402580
add esp, 8
cmp eax, ebx
je 0x401d18
mov ecx, dword [str.MdxService.exe]
inc eax
mov dword [eax], ecx
mov edx, dword [0x4091d4]
mov dword [eax + 4], edx
mov ecx, dword [0x4091d8]
mov dword [eax + 8], ecx
mov dx, word [0x4091dc]
mov word [eax + 0xc], dx
mov cl, byte [0x4091de]
mov byte [eax + 0xe], cl
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401d3a
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401f07
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebx
push str.MdxClt.exeMdxService.exe
call fcn.004018e0
add esp, 4
push 0x400
lea edx, [esp + 0x46c]
push edx
push ebx
call esi
lea eax, [esp + 0x468]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d70
sub eax, edx
dec eax
cmp eax, ebx
jl 0x401f02
mov cl, 0x2e
cmp byte [esp + eax + 0x468], cl
je 0x401d95
dec eax
jns 0x401d84
jmp 0x401f02
push edi
lea edi, [esp + 0x46c]
mov byte [esp + eax + 0x46c], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401da5
mov eax, dword [str._install.exe]
mov ecx, dword [0x4091a8]
mov edx, dword [0x4091ac]
mov dword [edi], eax
mov al, byte [0x4091b0]
mov dword [edi + 4], ecx
lea ecx, [esp + 0x46c]
mov dword [edi + 8], edx
push ecx
mov byte [edi + 0xc], al
call fcn.00401110
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x46c]
mov byte [esp + eax + 0x6c], cl
inc eax
cmp cl, bl
jne 0x401de0
lea edi, [esp + 0x6c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401df5
mov edx, dword [0x4091a0]
mov dword [edi], edx
lea edi, [esp + 0x6c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401e10
mov eax, dword [str.ERYS]
mov cl, byte [0x40919c]
mov dword [edi], eax
mov byte [edi + 4], cl
lea edi, [esp + 0x6c]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401e30
mov dx, word [0x409194]
mov al, byte [0x409196]
mov word [edi], dx
mov byte [edi + 2], al
lea edi, [esp + 0x6c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401e50
mov ecx, dword [0x409190]
mov dword [edi], ecx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
xor edx, edx
push ebx
mov dword [esp + 0x28], edx
push ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
push ebx
mov dword [esp + 0x3c], edx
push ebx
lea edx, [esp + 0x8c]
push edx
push ebx
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 0x101
mov word [esp + 0x80], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x46c]
push eax
call ebx
cmp eax, 1
je 0x401f01
push 0xc8
call edi
inc esi
cmp esi, 2
jl 0x401ee5
pop edi
mov eax, 1
mov ecx, dword [esp + 0x868]
pop esi
pop ebx
xor ecx, esp
call fcn.004025de
add esp, 0x864
ret 0x10