Function at 0x402fd0
Capabilities:
Create process on windows
Get common file path
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x324
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x320], eax
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.004080b0
push 0x103
lea ecx, [esp + 0x25]
push 0
push ecx
mov byte [esp + 0x2c], 0
call fcn.004080b0
push 0x103
lea edx, [esp + 0x239]
push 0
push edx
mov byte [esp + 0x240], 0
call fcn.004080b0
mov eax, dword [0x4150dc]
mov ecx, dword [0x4150e0]
mov dx, word [0x4150e4]
mov dword [esp + 0x24], eax
mov al, byte [0x4150e6]
add esp, 0x24
mov dword [esp + 4], ecx
lea ecx, [esp + 0x118]
mov byte [esp + 0xa], al
xor eax, eax
push ecx
push 0x104
mov word [esp + 0x10], dx
mov dword [esp + 0x13], eax
mov dword [esp + 0x17], eax
mov byte [esp + 0x1b], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403083
push esi
push edi
lea edi, [esp + 0x120]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403098
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x20]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push 0x104
push ecx
call fcn.00405702
lea edx, [esp + 0x230]
push 0x5c
push edx
call fcn.004051e0
add esp, 0x14
test eax, eax
je 0x4030f0
mov byte [eax], 0
lea eax, [esp + 0x120]
push 0x4150e8
push eax
call fcn.0040582e
mov esi, eax
add esp, 8
test esi, esi
je 0x40324d
push esi
push 1
push 9
push 0x4150ec
call fcn.00404e4c
push esi
push 1
push 5
push 0x4150f8
call fcn.00404e4c
lea eax, [esp + 0x3c]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403137
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00404e4c
push esi
push 1
push 2
push 0x415100
call fcn.00404e4c
push esi
push 1
push 0xa
push 0x415104
call fcn.00404e4c
lea eax, [esp + 0x4c]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403176
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00404e4c
push esi
push 1
push 0xf
push 0x415110
call fcn.00404e4c
push esi
push 1
push 7
push 0x415120
call fcn.00404e4c
lea eax, [esp + 0x254]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4031b8
push esi
sub eax, ecx
push 1
push eax
lea eax, [esp + 0x230]
push eax
call fcn.00404e4c
push esi
push 1
push 3
push 0x415128
call fcn.00404e4c
push esi
push 1
push 5
push 0x41512c
call fcn.00404e4c
lea eax, [esp + 0x150]
add esp, 0x30
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403200
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x12c]
push ecx
call fcn.00404e4c
push esi
push 1
push 1
push 0x415134
call fcn.00404e4c
push esi
call fcn.00404c6e
add esp, 0x24
push 0
push 0
push 0
lea edx, [esp + 0x12c]
push edx
push 0x415138
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x328]
pop edi
pop esi
xor ecx, esp
call fcn.00404586
add esp, 0x324
ret