Function at 0x404e0a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x28ec
call fcn.0059fbd0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea eax, [esp + 0x6f0]
mov esi, ebx
call fcn.00404dd3
test al, al
jne 0x405003
movzx eax, byte [ebx + 0x15]
mov edi, dword [ebp + 0xc]
push 0x5b09d4
push eax
push dword [ebx + 4]
lea eax, [esp + 0x20]
push dword [ebx + 0xc]
push edi
push eax
mov eax, dword [ebx + 0x10]
call fcn.0045847f
cmp dword [esp + 0x14], 2
jne 0x404e8f
push dword [ebx + 0xc]
mov esi, 0x104
push str.http:__www.nch.com.au_components__s.exe
lea edi, [esp + 0x4f0]
call fcn.004a9039
pop ecx
pop ecx
mov eax, edi
push eax
call fcn.004010ca
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x40520f
xor esi, esi
inc esi
cmp dword [esp + 0x14], esi
jne 0x404ea2
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x40520f
mov eax, dword [edi]
push 0
push 0x5bc0e8
mov ecx, edi
call dword [eax + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
test al, al
jne 0x404e98
lea eax, [esp + 0x6f0]
mov esi, ebx
call fcn.00404dd3
test al, al
jne 0x404ef3
mov eax, dword [edi]
push 0x12c
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
test al, al
je 0x404ec1
xor esi, esi
inc esi
jmp 0x404e98
mov eax, dword [ebx + 8]
test eax, eax
je 0x404ff2
cmp word [eax], 0
je 0x404ff2
push dword [ebx + 4]
mov esi, 0x104
push str.SoftwareNCH_Software_sSettings
lea edi, [esp + 0x4f0]
mov dword [esp + 0x14], 0x7530
call fcn.004a9039
pop ecx
pop ecx
mov edi, 0x5b07d8
mov esi, str.InstallDate
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x404fe4
push edi
push esi
lea eax, [esp + 0x4f0]
push eax
push SysReAllocString
lea eax, [esp + 0x2f0]
call fcn.00401132
cmp word [esp + 0x2e0], 0
jne 0x404fab
push edi
push esi
lea eax, [esp + 0x4f0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x2f0]
call fcn.00401132
cmp word [esp + 0x2e0], 0
jne 0x404fab
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0x32
lea edx, [esp + 0x14]
push edx
call dword [eax + 4]
sub dword [esp + 0xc], 0x32
cmp dword [esp + 0xc], 0
jg 0x404f35
lea eax, [esp + 0x6f0]
push eax
push dword [ebx + 8]
movzx eax, byte [ebx + 0x15]
push dword [ebx + 4]
push eax
call fcn.00404a26
cmp word [esp + 0x6f0], 0
jne 0x405003
movzx eax, byte [ebx + 0x15]
push dword [ebx + 4]
lea edi, [esp + 0x6f4]
push eax
call fcn.00404cb9
jmp 0x405003
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x40520f
mov eax, dword [edi]
push 0x3e8
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [eax + 4]
lea esi, [esp + 0x70]
call fcn.004017fe
lea esi, [esp + 0x2a1]
mov dword [esp + 0x70], 0x5c8a74
call fcn.00404991
lea eax, [esp + 0x2c1]
xor esi, esi
push eax
mov word [esp + 0x9d], si
mov dword [esp + 0x2c1], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [ebx + 0x14], 0
mov dword [esp + 0x70], 0x5c8b1c
mov dword [esp + 0x2d9], esi
je 0x40507c
push dword [ebx + 4]
mov esi, 0x104
push str.NCHLSI_s
lea edi, [esp + 0x4f0]
call fcn.004a9039
pop ecx
pop ecx
mov eax, edi
push eax
lea eax, [esp + 0x74]
push eax
call fcn.004049da
push dword [ebx]
lea eax, [esp + 0x6f4]
push eax
mov esi, 0x1000
lea edi, [esp + 0x900]
call fcn.004a9039
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005970f0
xor eax, eax
inc eax
mov dword [esp + 0x68], eax
mov word [esp + 0x6c], ax
mov dword [esp + 0x3c], edi
xor eax, eax
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x918]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4051ef
push dword [esp + 0x1c]
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 0x14], 0
je 0x4051da
push dword [ebx + 0x10]
mov esi, 0x104
push 0x5bc148
lea edi, [esp + 0x2e8]
call fcn.004a9039
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0
mov edx, edi
push edx
call dword [eax + 0x20]
push dword [ebx + 0x10]
push str.Switch__s
call fcn.004a9039
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
pop ecx
pop ecx
push 1
mov ecx, edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2bd]
call fcn.004b342c
lea esi, [esp + 0x70]
call fcn.0040188f
lea eax, [esp + 0x2a1]
call fcn.0040496e
lea edi, [esp + 0x2bd]
call fcn.004b3458
xor edi, edi
cmp dword [esp + 0xc], edi
jne 0x4051da
cmp dword [esp + 0x2d9], edi
je 0x4051da
push dword [esp + 0x2d9]
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x4051da
push ecx
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [eax], esi
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [eax]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi], eax
jmp 0x4051f8
mov esi, dword [ebp + 8]
mov dword [esi], 2
lea eax, [esp + 0x2bd]
call fcn.004018fe
lea eax, [esp + 0x70]
call fcn.004049b9
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc