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.zkPlatweb_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 0x401d3e
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 0x401d2f
lea edx, [esp + 0x68]
push str..exe
push edx
call fcn.00402ba0
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.004021d0
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 0x401d2f
lea eax, [esp + 0x68]
push 0x5c
push eax
call fcn.00402570
add esp, 8
cmp eax, ebx
je 0x401d0d
mov ecx, dword [str.zkPlatAp.exe]
inc eax
mov dword [eax], ecx
mov edx, dword [0x4091d0]
mov dword [eax + 4], edx
mov ecx, dword [0x4091d4]
mov dword [eax + 8], ecx
mov dl, byte [0x4091d8]
mov byte [eax + 0xc], dl
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401d2f
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401f05
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebx
push str.zkPlat.exezkPlatAp.exe
call fcn.004018e0
add esp, 4
push 0x400
lea eax, [esp + 0x46c]
push eax
push ebx
call esi
lea eax, [esp + 0x468]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d65
sub eax, edx
dec eax
cmp eax, ebx
jl 0x401f00
mov cl, 0x2e
lea esp, [esp]
cmp byte [esp + eax + 0x468], cl
je 0x401d91
dec eax
jns 0x401d80
jmp 0x401f00
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 0x401da1
mov ecx, dword [str._install.exe]
mov edx, dword [0x4091a8]
mov eax, dword [0x4091ac]
mov dword [edi], ecx
mov cl, byte [0x4091b0]
mov dword [edi + 4], edx
lea edx, [esp + 0x46c]
mov dword [edi + 8], eax
push edx
mov byte [edi + 0xc], cl
call fcn.00401110
add esp, 4
xor eax, eax
lea ecx, [ecx]
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 eax, dword [0x4091a0]
mov dword [edi], eax
lea edi, [esp + 0x6c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401e10
mov ecx, dword [str.ERYS]
mov dl, byte [0x40919c]
mov dword [edi], ecx
mov byte [edi + 4], dl
lea edi, [esp + 0x6c]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401e30
mov ax, word [0x409194]
mov cl, byte [0x409196]
mov word [edi], ax
mov byte [edi + 2], cl
lea edi, [esp + 0x6c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401e50
mov edx, dword [0x409190]
xor eax, eax
mov dword [edi], edx
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push ebx
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push ebx
mov dword [esp + 0x3c], eax
push ebx
lea eax, [esp + 0x8c]
push eax
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 ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ecx, [esp + 0x46c]
push ecx
call ebx
cmp eax, 1
je 0x401eff
push 0xc8
call edi
inc esi
cmp esi, 2
jl 0x401ee3
pop edi
mov eax, 1
mov ecx, dword [esp + 0x868]
pop esi
pop ebx
xor ecx, esp
call fcn.004025ce
add esp, 0x864
ret 0x10