Function at 0x439770
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 [0x4b77c0]
xor eax, esp
mov dword [esp + 0x624], eax
mov eax, dword [esp + 0x62c]
mov ecx, dword [str._p__]
mov dl, byte [0x494c24]
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.0046bf90
push 0x207
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.0046bf90
push 0x104
lea edx, [esp + 0x22d]
push 0
push edx
mov byte [esp + 0x234], 0
call fcn.0046bf90
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 0x439802
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.004338f0
add esp, 4
test eax, eax
jne 0x43987b
lea edx, [esp + 0x218]
push edx
call fcn.00438120
add esp, 4
lea edx, [esp + 0x10]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x439843
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439854
sub eax, edx
cmp eax, 2
jae 0x4398aa
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.0046be7b
add esp, 0x628
ret
lea eax, [esp + 0x218]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439884
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x439892
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 0x4398e2
mov ecx, dword [0x4dce6c]
push ecx
call fcn.00434ad0
jmp 0x439936
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 2
push 0x494c1c
push esi
call ebx
test eax, eax
je 0x439904
cmp dword [esp + 0x10], 2
je 0x439921
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x439921
mov eax, dword [0x4dce6c]
push eax
call fcn.00434ad0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x43994d
lea ecx, [esp + 0x18]
push ecx
call fcn.0046bebb
add esp, 4
lea edx, [esp + 0x18]
push edx
call fcn.0046bebb
add esp, 4
xor eax, eax
jmp 0x439aa2
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 0x4398d4
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 0x4399a1
cmp ebp, dword [esp + 0x10]
je 0x4399b8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4dce6c]
push ecx
call fcn.00434ad0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x439939
lea eax, [esp + 0x18]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4399d0
lea edi, [esp + 0x328]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4399e1
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 0x439a01
mov ax, word [0x492df8]
mov word [edi], ax
mov eax, dword [0x4dcf08]
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
jne 0x439a2f
push 0x7f02
push 0
call edi
mov dword [0x4dcf08], eax
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov ecx, dword [0x4dcf08]
push 0
push 0
lea edx, [esp + 0x330]
push edx
push str.notepad
push 0x493b68
push 0
mov dword [0x4dcedc], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4dcf0c]
test eax, eax
jne 0x439a83
push 0x7f00
push eax
call edi
mov dword [0x4dcf0c], eax
push eax
call esi
lea eax, [esp + 0x18]
push eax
mov dword [0x4dcedc], 0
call fcn.0046bebb
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x634]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0046be7b
add esp, 0x628
ret