Function at 0x404040
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x42c230
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x437a60]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push str.Enter_Register_It_process.
mov esi, ecx
call fcn.0040ae10
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
add esp, 8
cmp eax, ebx
je 0x4042a5
mov eax, dword [eax]
cmp eax, ebx
je 0x4042a5
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
je 0x4042a5
lea edi, [esi + 0x14]
mov esi, dword [edi]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
cmp esi, ebx
je 0x4040db
cmp dword [esi + 4], ebx
jne 0x4040d6
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4040dd
xor esi, esi
push 0x42e730
push esi
call fcn.00418d40
add esp, 8
test eax, eax
jne 0x404135
push 0x42e72c
lea ecx, [ebp - 0x18]
call fcn.00402eb0
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00403890
lea ecx, [ebp - 0x18]
cmp edi, ecx
je 0x40412a
mov ecx, edi
call fcn.00403750
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
cmp eax, ebx
je 0x40412a
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00403750
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
cmp esi, ebx
je 0x404153
cmp dword [esi + 4], ebx
jne 0x40414e
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x404155
xor esi, esi
push 0x20
push esi
call fcn.00418c50
add esp, 8
test eax, eax
je 0x4041e1
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
mov ecx, 0x22
mov word [ebp], cx
cmp esi, ebx
je 0x40418b
cmp dword [esi + 4], ebx
jne 0x404186
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x40418d
xor eax, eax
mov edx, eax
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404190
lea edi, [ebp]
sub eax, edx
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4041a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4041c0
mov cx, word [0x42e728]
lea edx, [ebp]
mov word [edi], cx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.004037d0
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
cmp eax, ebx
je 0x40422a
mov eax, dword [eax]
cmp eax, ebx
je 0x40422a
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jbe 0x40422a
push 0x42e724
lea ecx, [ebp - 0x1c]
call fcn.00402eb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403890
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00403750
push edi
mov ecx, esi
call fcn.00403890
push 0x3c
call fcn.00417e4b
add esp, 4
push 0x3c
mov esi, eax
push ebx
push esi
call fcn.00418dd0
mov ecx, dword [ebp - 0x14]
mov dword [esi], 0x3c
mov dword [esi + 4], 0x40
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], str.regsvr32.exe
mov edi, dword [ecx]
add esp, 0xc
cmp edi, ebx
je 0x40427a
cmp dword [edi + 4], ebx
jne 0x404275
mov edx, dword [edi]
push edx
call fcn.00417b60
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x40427c
xor edi, edi
push esi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, ebx
jne 0x4042cc
push ebx
push str.Leaving_Rgister_It_with_failure.
call fcn.0040ae10
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00418a11
add ebp, 0x108
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4042dc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4042ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00417eb0
add esp, 4
push ebx
push str.Leaving_Rgister_It_successfully.
call fcn.0040ae10
add esp, 8
mov al, 1
jmp 0x4042a7