Function at 0x4034fb
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x412164
call fcn.00404e64
sub esp, 0x4e4
mov eax, dword [0x4140c0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x40aabb
mov dword [ebp - 0x14], eax
call fcn.0040492b
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
and dword [0x414e94], 0
mov dword [0x414b44], eax
mov dword [0x414b40], eax
mov dword [esp], 0x401274
call ebx
push eax
lea ecx, [ebp - 0x1b0]
call fcn.0040a4ee
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3d8]
call fcn.00403390
push str.NDP_Redist_Setup
lea ecx, [ebp - 0x3e0]
call fcn.004033f7
push 5
pop ecx
mov esi, 0x40140c
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push 0x15
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
movsb byte es:[edi], byte [esi]
call fcn.0040af3a
cmp dword [ebp - 0x3dc], 0
jne 0x4035c8
push 0x1005
push 0x10
push 0xa
push 0x64
lea ecx, [ebp - 0x34]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x4d0]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x4d0]
jmp 0x40397a
cmp dword [ebp - 0x3e0], 0
jne 0x403602
push 0x1004
push 0x10
push 0xa
push 0x65
lea ecx, [ebp - 0x34]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x430]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x430]
jmp 0x40397a
call ebx
push eax
push 0x4013e4
call fcn.0040b2c0
lea ecx, [ebp - 0x1b0]
call fcn.0040a5da
call fcn.0040d1b2
test eax, eax
jne 0x403654
push 0x1001
push 0x10
push 0xa
push 0x1b
lea ecx, [ebp - 0x34]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x450]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x450]
jmp 0x40397a
push 0x40
xor eax, eax
mov byte [ebp - 0x2b4], 0
pop ecx
lea edi, [ebp - 0x2b3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1a0]
push eax
call fcn.004048a0
pop ecx
mov esi, 0x401274
push esi
mov edi, eax
call fcn.004048a0
add edi, eax
cmp edi, 0x104
pop ecx
jb 0x4036c7
push 0x1014
push 0x10
push 0xa
push 0x30
lea ecx, [ebp - 0x3d8]
call fcn.0040a169
push 8
pop ecx
lea esi, [ebp - 0x3d8]
lea edi, [ebp - 0x470]
rep movsd dword es:[edi], dword [esi]
push 0x4122a4
lea eax, [ebp - 0x470]
jmp 0x40397a
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.004047a0
pop ecx
pop ecx
lea eax, [ebp - 0x2b4]
push esi
push eax
call fcn.004047b0
cmp byte [ebp - 0x1a6], 0
pop ecx
pop ecx
jne 0x403727
push 0x4013d0
call fcn.0040b349
call fcn.0040b12c
lea eax, [ebp - 0x3d8]
push eax
push 0x401218
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.0040c723
jmp 0x403a32
push 0x4013c0
call fcn.0040b349
push 7
pop ecx
mov esi, 0x4013a0
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push 0x1d
lea eax, [ebp - 0x34]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040af3a
call fcn.0040b7cf
push 8
pop ecx
mov esi, 0x40137c
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
push 0x22
lea eax, [ebp - 0x94]
push eax
movsw word es:[edi], word [esi]
call fcn.0040af3a
call fcn.0040c220
mov esi, eax
test esi, esi
je 0x403783
cmp esi, 1
jne 0x40380a
push fcn.0040b2c0
lea ecx, [ebp - 0x58]
call fcn.0040cb60
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040cc36
test eax, eax
je 0x4037fa
mov dword [ebp + 8], eax
mov al, byte [ebp - 0x1a8]
or byte [ebp - 0x3d4], al
lea eax, [ebp + 8]
push eax
push 0x1011
push 0x30
push 0x2e
lea ecx, [ebp - 0x3d8]
call fcn.0040a194
lea ecx, [ebp - 0x3d8]
call fcn.0040a355
push 8
pop ecx
lea esi, [ebp - 0x3d8]
lea edi, [ebp - 0x4b0]
mov byte [ebp - 0x3d4], 1
rep movsd dword es:[edi], dword [esi]
push 0x4122a4
lea eax, [ebp - 0x4b0]
jmp 0x40397a
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0040349b
call fcn.0040b12c
cmp esi, 1
je 0x403819
cmp esi, 2
jne 0x403878
push dword [ebp - 0x1a8]
call fcn.0040bdce
cmp eax, 0xbc2
je 0x403866
test eax, eax
je 0x403866
push 0x1002
push 0x10
push 0xa
push 0x1f
lea ecx, [ebp - 0x3d8]
call fcn.0040a169
push 8
pop ecx
lea esi, [ebp - 0x3d8]
lea edi, [ebp - 0x4f0]
rep movsd dword es:[edi], dword [esi]
push 0x4122a4
lea eax, [ebp - 0x4f0]
jmp 0x40397a
push eax
push 0x40
push 0xa
push 0xd
lea ecx, [ebp - 0x3d8]
call fcn.0040a169
lea ecx, [ebp - 0x3f0]
call fcn.00403b6f
lea eax, [ebp - 0x2b4]
push eax
push 0
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 4
call fcn.00403b95
push 0x401234
lea ecx, [ebp - 0x3f0]
call fcn.00403bfb
mov ebx, eax
push ebx
call fcn.004048a0
pop ecx
mov edi, 0x401240
push edi
mov esi, eax
call fcn.004048a0
pop ecx
lea eax, [eax + esi + 1]
push eax
call fcn.00404792
pop ecx
mov esi, eax
push edi
push esi
call fcn.004047a0
pop ecx
pop ecx
push ebx
push esi
call fcn.004047b0
pop ecx
pop ecx
lea eax, [ebp - 0x3b8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push 0x80000002
mov dword [ebp - 0x3b8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov edi, eax
call fcn.0040478d
cmp edi, ebx
pop ecx
jne 0x403980
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 0x40126c
push dword [ebp - 0x3b8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x3e4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3b8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x403980
cmp dword [ebp + 8], 1
jne 0x403980
push ebx
push 0x30
push 0xa
push 0x15
lea ecx, [ebp - 0x54]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x490]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x490]
push eax
call fcn.00404e83
lea eax, [ebp - 0x2b4]
push eax
push 0x40136c
call fcn.0040b2c0
lea eax, [ebp - 0x3b4]
push 0x4011dc
push eax
call fcn.004047a0
cmp byte [ebp - 0x9c], 0
pop ecx
pop ecx
je 0x4039d3
lea eax, [ebp - 0x3b4]
push 0x401368
push eax
call fcn.004047b0
pop ecx
pop ecx
lea eax, [ebp - 0x3b4]
push 0x4011f4
push eax
call fcn.004047b0
pop ecx
pop ecx
cmp byte [ebp - 0x9b], 0
je 0x403a02
lea eax, [ebp - 0x3b4]
push 0x401368
push eax
call fcn.004047b0
pop ecx
pop ecx
lea eax, [ebp - 0x3b4]
push 0x401224
push eax
call fcn.004047b0
pop ecx
pop ecx
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.0040c723
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 2
call fcn.00403b7c
mov al, byte [ebp - 0x1a8]
or byte [ebp - 0x3d4], al
mov esi, dword [ebp - 0x3d8]
lea ecx, [ebp - 0x3d8]
call fcn.0040a1f7
jmp 0x403ab6
mov edi, 0x2000
cmp esi, edi
mov dword [ebp - 4], 1
jne 0x403acb
mov esi, 0xbc2
mov eax, 0x100f
mov ecx, esi
and ecx, eax
cmp ecx, eax
je 0x403b06
add eax, 4
mov ecx, esi
and ecx, eax
cmp ecx, eax
je 0x403b06
mov eax, 0x1016
mov ecx, esi
and ecx, eax
cmp ecx, eax
je 0x403b06
push esi
push 0x40134c
call fcn.0040b30a
push esi
push 0x40132c
call fcn.0040b30a
test dword [ebp - 0x3d8], edi
je 0x403b22
cmp byte [ebp - 0x1a8], 0
jne 0x403b22
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupPromptReboot]
cmp dword [ebp - 0x3e0], 0
mov byte [ebp - 4], 0
je 0x403b3b
push dword [ebp - 0x3e0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b0]
call fcn.0040a526
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404d66
pop edi
pop esi
pop ebx
leave
ret 0x10