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

Disassembly:
sub esp, 0x628
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x624], eax
mov eax, dword [esp + 0x62c]
mov ecx, dword [str._p__]
mov dl, byte [0x492e9c]
push 0x307
mov dword [esp + 8], eax
lea eax, [esp + 0x321]
push 0
push eax
mov dword [esp + 0x324], ecx
mov byte [esp + 0x328], dl
call fcn.0046a470
push 0x207
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.0046a470
push 0x104
lea edx, [esp + 0x22d]
push 0
push edx
mov byte [esp + 0x234], 0
call fcn.0046a470
mov eax, dword [esp + 0x654]
lea edx, [esp + 0x234]
add esp, 0x24
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4396b2
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call fcn.004329a0
add esp, 4
test eax, eax
jne 0x43972b
lea edx, [esp + 0x218]
push edx
call fcn.004375f0
add esp, 4
lea edx, [esp + 0x10]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4396f3
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439704
sub eax, edx
cmp eax, 2
jae 0x43975a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00469f7b
add esp, 0x628
ret
lea eax, [esp + 0x218]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439734
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x439742
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea eax, [esp + 0x30]
push eax
mov edi, 1
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x439792
mov ecx, dword [0x4dc364]
push ecx
call fcn.00433e20
jmp 0x4397e6
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 2
push 0x492e94
push esi
call ebx
test eax, eax
je 0x4397b4
cmp dword [esp + 0x10], 2
je 0x4397d1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4397d1
mov eax, dword [0x4dc364]
push eax
call fcn.00433e20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4397fd
lea ecx, [esp + 0x18]
push ecx
call fcn.00469947
add esp, 4
lea edx, [esp + 0x18]
push edx
call fcn.00469947
add esp, 4
xor eax, eax
jmp 0x439952
push 0
push 0
push 3
push 0
push 3
push 0x40000000
lea eax, [esp + 0x30]
push eax
mov edi, 1
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x439784
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x644]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push esi
call ebx
test eax, eax
je 0x439851
cmp ebp, dword [esp + 0x10]
je 0x439868
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4dc364]
push ecx
call fcn.00433e20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4397e9
lea eax, [esp + 0x18]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439880
lea edi, [esp + 0x328]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x439891
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x328]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4398b1
mov ax, word [0x48ec80]
mov word [edi], ax
mov eax, dword [0x4dc400]
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
jne 0x4398df
push 0x7f02
push 0
call edi
mov dword [0x4dc400], eax
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov ecx, dword [0x4dc400]
push 0
push 0
lea edx, [esp + 0x330]
push edx
push str.notepad
push 0x49185c
push 0
mov dword [0x4dc3d4], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4dc404]
test eax, eax
jne 0x439933
push 0x7f00
push eax
call edi
mov dword [0x4dc404], eax
push eax
call esi
lea eax, [esp + 0x18]
push eax
mov dword [0x4dc3d4], 0
call fcn.00469947
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x634]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00469f7b
add esp, 0x628
ret