Function at 0x478a30
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x894
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x890], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x288], ax
lea eax, [esp + 0x28a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [esp + 0x78], ax
push 0x206
push eax
lea eax, [esp + 0x82]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [esp + 0x690], ax
push 0x206
push eax
lea eax, [esp + 0x69a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [esp + 0x488], ax
push 0x206
push eax
lea eax, [esp + 0x492]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [0x5c015c]
push 3
push str.SCHEDULED_TASKDATA
xor edx, edx
mov dword [esp + 0x30], eax
mov ecx, edi
call fcn.00532810
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x478e18
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push eax
lea eax, [esp + 0x48c]
mov edx, ebx
push eax
push str.FILENAME
mov ecx, edi
call fcn.00534260
add esp, 0xc
lea eax, [esp + 0x280]
push 0x104
push eax
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x104
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x478bba
lea ecx, [esp + 0x280]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478b60
sub ecx, edx
lea eax, [esp + 0x280]
sar ecx, 1
cmp ecx, 0x104
jae 0x478b94
push eax
lea eax, [esp + 0x7c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x478bba
push 0x103
push eax
lea eax, [esp + 0x80]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esp + 0x27e], ax
mov esi, 0x104
lea ecx, [esp + 0x78]
push 0x587600
mov edx, esi
call fcn.0052fae0
lea ecx, [esp + 0x7c]
add esp, 4
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478be0
sub ecx, edx
sar ecx, 1
sub esi, ecx
je 0x478c3d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x48c]
mov edx, ebx
push eax
push 0x587604
mov ecx, edi
call fcn.00534260
add esp, 0xc
lea eax, [esp + 0x78]
push 0
push eax
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
lea eax, [esp + 0x490]
push eax
call esi
jmp 0x478c43
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push eax
lea eax, [esp + 0x48c]
mov edx, ebx
push eax
push str.DIRECTORY
mov ecx, edi
call fcn.00534260
add esp, 0xc
lea eax, [esp + 0x690]
push 0x104
push eax
lea eax, [esp + 0x490]
push eax
call esi
cmp word [esp + 0x280], 0
je 0x478e18
push 0x44
lea eax, [esp + 0x34]
push 0
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [esp + 0x3c], 0x44
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 1
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [0x5c001c]
test eax, eax
je 0x478d8b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 1
push 2
push 0
push 0x2000000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x478d83
mov edi, dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x698]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x38]
call edi
test eax, eax
jne 0x478d7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10b
jne 0x478d7d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x38]
call edi
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
jmp 0x478df8
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x698]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x2a4]
push eax
call edi
test eax, eax
jne 0x478df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10b
jne 0x478df8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x2a4]
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x478e08
cmp eax, 0xffffffff
je 0x478e08
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x478e18
cmp eax, 0xffffffff
je 0x478e18
push eax
call esi
cmp dword [esp + 0x28], 0
je 0x478e29
push dword [esp + 0x2c]
call dword [0x5c0160]
mov ecx, dword [esp + 0x89c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4