Function at 0x401c56
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x423b9f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x42f060]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x42f060]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
push 7
pop ecx
mov esi, str.73PfuBdrl3if9vgiGiuX8yvnbO3yH4
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
push 0x51
lea edx, [esp + 0xa8]
pop ecx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00401a37
push 0x104
lea eax, [esp + 0xc8]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x3a
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401c00
lea ecx, [esp + 0xc4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401cea
sub ecx, edx
cmp ecx, 4
jl 0x401fad
lea eax, [esp + ecx + 0xc0]
push str..exe
push eax
call fcn.00406c31
pop ecx
pop ecx
test eax, eax
jne 0x401fad
push 0x18
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401c00
push 0x1d
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401a37
push 0x12
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401b91
lea ecx, [esp + 0x5c]
call fcn.0040202f
push 0x30
lea edx, [esp + 0xa8]
mov dword [esp + 0x1e4], ebx
pop ecx
call fcn.00401b91
push 9
lea eax, [esp + 0xa8]
push str.registry
push eax
call fcn.004111d9
add esp, 0xc
test eax, eax
jne 0x401d8b
lea edx, [esp + 0xa4]
call fcn.00401aec
cmp dword [esp + 0x6c], 0
lea edx, [esp + 0xa4]
jne 0x401da6
call fcn.00401aec
push 0x29
pop esi
jmp 0x401f9d
call fcn.00401aec
push ecx
lea edx, [esp + 0x60]
lea ecx, [esp + 0x48]
call fcn.00405f87
mov byte [esp + 0x1e4], 1
lea ecx, [esp + 0x90]
mov edx, eax
mov dword [esp], str.014B5DDB_21D8_4D0E_A85A_922F4FD6FDB1.exe
call fcn.00406041
pop ecx
push ebx
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e8], 3
call fcn.0040264c
push ecx
lea edx, [esp + 0x60]
lea ecx, [esp + 0x30]
call fcn.00405f87
mov byte [esp + 0x1e4], 4
lea ecx, [esp + 0x18]
mov edx, eax
mov dword [esp], str.InstallerHelper
call fcn.00406041
mov byte [esp + 0x1e4], 5
lea ecx, [esp + 0x78]
mov edx, eax
mov dword [esp], str..dll
call fcn.00406041
pop ecx
push ebx
push 1
lea ecx, [esp + 0x1c]
call fcn.0040264c
push ebx
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x1e8], 8
call fcn.0040264c
lea edx, [esp + 0xa4]
call fcn.00401aec
push ecx
push ecx
lea ecx, [esp + 0x7c]
call fcn.00406ac0
pop ecx
pop ecx
push 0x44
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401b91
lea edx, [esp + 0xa4]
call fcn.00401aec
cmp dword [esp + 0x88], 0x10
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x401eb3
push 0x58
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401b91
push 0x2d
jmp 0x401eee
push str.f63223
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x401ef4
push 9
lea eax, [esp + 0xa8]
push str.registry
push eax
call fcn.004111d9
add esp, 0xc
test eax, eax
jne 0x401eec
lea edx, [esp + 0xa4]
call fcn.00401aec
push 0x2c
pop esi
jmp 0x401f82
push 6
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401b91
call esi
push 0x1f
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401a37
push 0x55
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401a37
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x3a
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401c00
push 0x45
lea edx, [esp + 0xa8]
pop ecx
call fcn.00401a37
lea ecx, [esp + 0x5c]
call fcn.00406a10
lea edx, [esp + 0xa4]
call fcn.00401aec
lea eax, [esp + 0xa4]
push eax
push 0x42b9a8
call fcn.0040787c
pop ecx
pop ecx
lea eax, [esp + 0xa4]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, ebx
push ebx
push 1
lea ecx, [esp + 0x7c]
call fcn.0040264c
push ebx
push 1
lea ecx, [esp + 0x94]
call fcn.0040264c
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.0040264c
mov eax, esi
jmp 0x401faf
xor eax, eax
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.00406b61
mov esp, ebp
pop ebp
ret 8