Function at 0x401390
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x417144
push eax
mov eax, 0x1f90
mov dword fs:[0], esp
call fcn.00402ec0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x3e7
xor eax, eax
lea edi, [esp + 0x1001]
mov byte [esp + 0x1000], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1000]
push eax
push 0xfa0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x1000]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xfff], 0x5c
je 0x40140e
mov byte [esp + ecx + 0x1000], 0x5c
mov byte [esp + ecx + 0x1001], bl
push ebx
push ebx
push ecx
lea edx, [esp + 0x100c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00412d99
add ebp, 4
mov ecx, ebp
call fcn.00401a30
mov esi, eax
mov eax, dword [0x41d510]
mov dword [esp + 0x1c], eax
cmp esi, 0x3ea
mov dword [esp + 0x1fa8], ebx
je 0x401463
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1fa8], 0xffffffff
call fcn.00412d2b
mov eax, esi
jmp 0x4017a3
lea ecx, [esp + 0x40]
push ebx
push ecx
mov ecx, ebp
call fcn.004017e0
mov edx, dword [0x41d510]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x1fac], 2
call fcn.004017c0
mov ecx, dword [eax]
lea edx, [esp + 0x1000]
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_s
push eax
mov byte [esp + 0x1fb8], 3
call fcn.0040e512
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1fa8], 2
call fcn.00412d2b
mov ecx, dword [esp + 0x18]
push 0x41d0f0
push ecx
call fcn.004031a3
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40151d
lea ecx, [esp + 0x18]
mov byte [esp + 0x1fa8], 1
call fcn.00412d2b
lea ecx, [esp + 0x40]
mov byte [esp + 0x1fa8], bl
call fcn.004018b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1fa8], 0xffffffff
call fcn.00412d2b
mov eax, 0x3e8
jmp 0x4017a3
mov ecx, 0x3e7
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x41d510]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
push esi
push 1
lea edx, [esp + 0x18]
push 4
push edx
mov byte [esp + 0x1fb8], 6
call fcn.0040305b
mov eax, dword [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x78]
push 1
push ecx
call fcn.0040305b
mov edx, dword [esp + 0x30]
add esp, 0x20
lea eax, [esp + 0x60]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + edx + 0x64], bl
call fcn.00412e68
push esi
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.0040305b
mov edx, dword [esp + 0x20]
push esi
push edx
lea eax, [esp + 0x78]
push 1
push eax
call fcn.0040305b
mov ecx, dword [esp + 0x30]
add esp, 0x20
lea edx, [esp + 0x60]
mov byte [esp + ecx + 0x60], bl
push edx
lea ecx, [esp + 0x2c]
call fcn.00412e68
push esi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call fcn.0040305b
mov ecx, dword [esp + 0x20]
push esi
push ecx
lea edx, [esp + 0x78]
push 1
push edx
call fcn.0040305b
mov eax, dword [esp + 0x30]
add esp, 0x20
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + eax + 0x64], bl
call fcn.00412e68
push esi
call fcn.00402fde
mov edx, dword [0x41d510]
mov dword [esp + 0x18], edx
mov byte [esp + 0x1fac], 7
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push str.SoftwareAffiliateCreator_
push str._s_s
push ecx
call fcn.0040e512
add esp, 0x14
lea ecx, [esp + 0x34]
push 0x80000002
call fcn.00402150
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push edx
push str.PurchaseLink
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1fb4], 8
call fcn.004021c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ecx
push str.ResellerUrl
push edx
lea ecx, [esp + 0x40]
call fcn.004021c0
lea eax, [esp + 0x50]
push 1
push eax
mov ecx, ebp
call fcn.004017e0
mov ecx, dword [0x41d510]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x50]
push edx
mov byte [esp + 0x1fac], 0xa
call fcn.004017c0
mov eax, dword [eax]
lea ecx, [esp + 0x1000]
push eax
push ecx
lea edx, [esp + 0x2c]
push str._s_s
push edx
mov byte [esp + 0x1fb8], 0xb
call fcn.0040e512
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1fa8], 0xa
call fcn.00412d2b
mov eax, dword [esp + 0x1fb0]
mov ecx, dword [esp + 0x24]
push 0xa
push ebx
push eax
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1fa8], 9
call fcn.00412d2b
lea ecx, [esp + 0x50]
mov byte [esp + 0x1fa8], 8
call fcn.004018b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1fa8], 7
call fcn.00402190
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fa8], 6
call fcn.00412d2b
lea ecx, [esp + 0x30]
mov byte [esp + 0x1fa8], 5
call fcn.00412d2b
mov byte [esp + 0x1fa8], 4
lea ecx, [esp + 0x28]
call fcn.00412d2b
lea ecx, [esp + 0x20]
mov byte [esp + 0x1fa8], 2
call fcn.00412d2b
lea ecx, [esp + 0x18]
mov byte [esp + 0x1fa8], 1
call fcn.00412d2b
lea ecx, [esp + 0x40]
mov byte [esp + 0x1fa8], bl
call fcn.004018b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1fa8], 0xffffffff
call fcn.00412d2b
mov eax, 0x3ea
mov ecx, dword [esp + 0x1fa0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1f9c
ret 4