Function at 0x4be212
Capabilities:
Create process on windows

Disassembly:
push 0x144
mov eax, 0x51f659
call fcn.004db2a7
mov ebx, ecx
and dword [ebp - 0xf0], 0
lea eax, [ebp - 0xa0]
push eax
mov byte [ebx + 0xf0], 1
call fcn.004bf1c8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
push 0x535f94
call fcn.0040437e
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0046d3b0
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4be272
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.0041212b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405662
mov esi, 0x546ce4
push esi
call fcn.004e07a4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x88]
call fcn.0041212b
mov eax, dword [ebx + 0x68]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax + 0xc4]
mov eax, dword [ecx + 0x10]
add eax, dword [ecx + 0xc]
and dword [edx], 0
and dword [edx + 4], 0
mov dword [edx + 8], eax
mov eax, dword [ecx]
mov dword [edx], eax
mov byte [ebp - 4], 3
sub esp, 0xc
mov eax, dword [ebx + 0x68]
mov edx, esp
mov ecx, dword [eax + 0xc4]
mov eax, dword [ecx + 0xc]
and dword [edx], 0
and dword [edx + 4], 0
mov dword [edx + 8], eax
mov eax, dword [ecx]
mov dword [edx], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004c00b7
mov byte [ebp - 4], 5
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0047ec30
mov byte [ebp - 4], 6
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4be317
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.0041212b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00405662
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004043cb
push 0x40
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x150], 0x44
push 0
push eax
call fcn.004de4e0
xor eax, eax
lea edi, [ebp - 0x108]
stosd dword es:[edi], eax
lea ecx, [ebp - 0xa0]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0046d3b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
cmovae ecx, dword [ebp - 0x88]
cmp dword [eax + 0x14], 8
jb 0x4be393
mov eax, dword [eax]
lea edx, [ebp - 0x108]
push edx
lea edx, [ebp - 0x150]
push edx
xor edx, edx
push edx
push edx
push edx
push edx
push edx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405662
test esi, esi
jne 0x4be45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x64], eax
cmp dword [ebx + 0xc0], esi
je 0x4be72c
mov edx, 0xd000000
lea ecx, [ebp - 0x40]
call fcn.0045a8a0
mov byte [ebp - 4], 8
mov ecx, dword [ebx + 0xc0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b5973
lea ecx, [ebp - 0x28]
call fcn.00405662
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405662
mov edx, dword [ebx + 0x64]
lea ecx, [ebp - 0x40]
call fcn.0045aa90
mov byte [ebp - 4], 9
mov ecx, dword [ebx + 0xc0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b5973
lea ecx, [ebp - 0x28]
call fcn.00405662
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405662
mov ecx, dword [ebx + 0xc0]
lea eax, [ebp - 0x28]
push eax
call fcn.004b59e4
lea ecx, [ebp - 0x28]
jmp 0x4be727
push 0xffffffffffffffff
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4be72c
cmp eax, 1
jne 0x4be4e8
push 0x53c158
lea ecx, [ebp - 0x40]
call fcn.0040437e
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
mov ecx, dword [ebx + 0x68]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xf0], 1
push eax
call fcn.004bb02a
mov dword [ebp - 4], 0xd
push 3
pop ecx
mov dword [ebp - 0xf0], ecx
cmp dword [eax + 0x10], 0
je 0x4be4ee
cmp dword [ebp - 0xf4], 0
je 0x4be4df
cmp dword [ebp - 0xf4], 0xbc2
jne 0x4be4ee
mov byte [ebp - 0xe9], 1
jmp 0x4be4f5
mov ecx, dword [ebp - 0xf0]
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xc
test cl, 2
je 0x4be518
and ecx, 0xfffffffd
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0x28]
call fcn.00405662
mov ecx, dword [ebp - 0xf0]
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test al, cl
je 0x4be533
and ecx, 0xfffffffe
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0x40]
call fcn.00405662
cmp byte [ebp - 0xe9], 0
je 0x4be69b
push str.AiProductCode
lea ecx, [ebp - 0x28]
call fcn.0040437e
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x28]
mov ecx, dword [ebx + 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004bb02a
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.00405662
xor esi, esi
cmp dword [ebp - 0x30], esi
jne 0x4be5bb
push str.AiProductCode64
lea ecx, [ebp - 0x28]
call fcn.0040437e
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x28]
mov ecx, dword [ebx + 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004bb02a
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x40]
push eax
call fcn.00404329
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x58]
call fcn.00405662
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.00405662
inc esi
push str.ARPSIZE
lea ecx, [ebp - 0x28]
call fcn.0040437e
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x28]
mov ecx, dword [ebx + 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004bb02a
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x28]
call fcn.00405662
cmp dword [ebp - 0x60], 0
je 0x4be683
cmp dword [ebp - 0x30], 0
je 0x4be683
lea eax, [ebp - 0x40]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
lea ecx, [ebp - 0x58]
call fcn.00419ebd
pop ecx
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xe8]
shl esi, 8
push esi
push 1
push 0x80000002
push eax
call fcn.0046f930
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x58]
call fcn.00405662
push str.EstimatedSize
lea ecx, [ebp - 0x28]
call fcn.0040437e
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.004e4d44
pop ecx
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00470300
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
call fcn.00405662
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xe8]
call fcn.0040de0e
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x70]
call fcn.00405662
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405662
cmp dword [ebx + 0xc0], 0
mov eax, dword [ebp - 0xf4]
mov dword [ebx + 0x64], eax
je 0x4be72c
mov edx, 0xd000000
lea ecx, [ebp - 0x28]
call fcn.0045a8a0
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebx + 0xc0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004b5973
lea ecx, [ebp - 0x58]
call fcn.00405662
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405662
mov edx, dword [ebx + 0x64]
lea ecx, [ebp - 0x28]
call fcn.0045aa90
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebx + 0xc0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004b5973
lea ecx, [ebp - 0x58]
call fcn.00405662
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405662
mov ecx, dword [ebx + 0xc0]
lea eax, [ebp - 0x58]
push eax
call fcn.004b59e4
lea ecx, [ebp - 0x58]
call fcn.00405662
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00405662
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00405662
call fcn.004db251
ret