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 [0x40b19c]
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.CZWeb_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 0x401d35
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 0x40916e
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d26
lea edx, [esp + 0x68]
push str..exe
push edx
call fcn.00402c40
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 0x401d26
lea eax, [esp + 0x68]
push 0x5c
push eax
call fcn.00402650
add esp, 8
cmp eax, ebx
je 0x401d04
mov ecx, dword [str.czWebAp.exe]
inc eax
mov dword [eax], ecx
mov edx, dword [0x4091cc]
mov dword [eax + 4], edx
mov ecx, dword [0x4091d0]
mov dword [eax + 8], ecx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401d26
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401ef7
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebx
push str.czWeb.execzWebAp.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]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d60
sub eax, edx
dec eax
cmp eax, ebx
jl 0x401ef2
mov cl, 0x2e
cmp byte [esp + eax + 0x468], cl
je 0x401d85
dec eax
jns 0x401d74
jmp 0x401ef2
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 0x401d95
mov eax, dword [str._install.exe]
mov ecx, dword [0x4091a4]
mov edx, dword [0x4091a8]
mov dword [edi], eax
mov al, byte [0x4091ac]
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 0x401dd0
lea edi, [esp + 0x6c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401de5
mov edx, dword [0x40919c]
mov dword [edi], edx
lea edi, [esp + 0x6c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401e00
mov eax, dword [str.ERYS]
mov cl, byte [0x409198]
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 0x401e20
mov dx, word [0x409190]
mov al, byte [0x409192]
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 0x401e40
mov ecx, dword [0x40918c]
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 0x401ef1
push 0xc8
call edi
inc esi
cmp esi, 2
jl 0x401ed5
pop edi
mov eax, 1
mov ecx, dword [esp + 0x868]
pop esi
pop ebx
xor ecx, esp
call fcn.0040259b
add esp, 0x864
ret 0x10