Function at 0x429f50
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x26a8
call fcn.004f3370
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov esi, 0x56a0c8
mov dword [ebp - 0x2638], ecx
push edi
mov dword [ebp - 0x2624], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x429f84
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, ecx
je 0x429fd9
cmp esi, 0xfe
jg 0x429fd9
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004cddb0
add esp, 0xc
lea eax, [ebp - 0x414]
push esi
push eax
push esi
push 0x56a0c8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x429fcf
call edi
jmp 0x429fd9
xor ecx, ecx
mov word [ebp + eax*2 - 0x414], cx
push 0x44
lea eax, [ebp - 0x268c]
push 0
push eax
call fcn.004cddb0
add esp, 0xc
mov dword [ebp - 0x2684], str.Winsta0Winlogon
mov eax, 5
mov dword [ebp - 0x268c], 0x44
mov word [ebp - 0x265c], ax
mov ax, word [0x53fb18]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
mov dword [ebp - 0x2634], 0
call fcn.004cddb0
add esp, 0xc
mov dword [ebp - 0x262c], 0
lea eax, [ebp - 0x2588]
mov dword [ebp - 0x2620], 0x94
mov dword [ebp - 0x2628], eax
xor esi, esi
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x54073c
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2630], eax
test eax, eax
je 0x42a0ea
push str.WinStationQueryInformationW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a0cd
lea ecx, [ebp - 0x263c]
push ecx
push 0x208
lea ecx, [ebp - 0x214]
push ecx
push 0x21
push dword [ebp - 0x2638]
push esi
call eax
movzx eax, al
mov dword [ebp - 0x2634], eax
push dword [ebp - 0x2630]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x2634], esi
je 0x42a0ea
cmp word [ebp - 0x214], si
jne 0x42a110
push dword [ebp - 0x2638]
lea eax, [ebp - 0x214]
push str..PipeTerminalServerSystemExecSrvr_d
push 0x104
push eax
call fcn.00429e50
add esp, 0x10
nop dword [eax]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2630], eax
cmp eax, 0xffffffff
jne 0x42a169
call edi
cmp eax, 0xe7
jne 0x42a156
push 0x7530
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x42a110
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push 0x94
lea eax, [ebp - 0x261c]
push 0
push eax
call fcn.004cddb0
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp - 0x2614], 1
mov dword [ebp - 0x25e8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x2618], eax
lea ecx, [ebp - 0x414]
mov eax, dword [ebp - 0x2624]
lea edx, [ecx + 2]
mov dword [ebp - 0x2610], eax
mov dword [ebp - 0x260c], esi
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a1c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
lea edi, [eax + 0x94]
mov dword [ebp - 0x2624], eax
cmp edi, 0x2000
jbe 0x42a1f7
mov edi, 0x94
mov dword [ebp - 0x2608], esi
jmp 0x42a231
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x2588]
push eax
call fcn.004cdf10
mov eax, dword [ebp - 0x2624]
add esp, 0xc
mov dword [ebp - 0x2620], edi
mov dword [ebp - 0x2608], 0x94
lea eax, [ebp + eax - 0x2588]
mov dword [ebp - 0x2628], eax
movups xmm0, xmmword [ebp - 0x268c]
mov eax, dword [ebp - 0x264c]
lea edx, [ebp - 0x2628]
mov dword [ebp - 0x259c], eax
mov ecx, str.Winsta0Winlogon
movups xmmword [ebp - 0x25dc], xmm0
lea eax, [ebp - 0x2620]
movups xmm0, xmmword [ebp - 0x267c]
push edi
push eax
movups xmmword [ebp - 0x25cc], xmm0
movups xmm0, xmmword [ebp - 0x266c]
movups xmmword [ebp - 0x25bc], xmm0
movups xmm0, xmmword [ebp - 0x265c]
movups xmmword [ebp - 0x25ac], xmm0
call fcn.00429ee0
mov ecx, dword [ebp - 0x25d0]
add esp, 8
mov dword [ebp - 0x25d4], eax
test ecx, ecx
jne 0x42a2a4
xor eax, eax
jmp 0x42a2bf
push dword [ebp - 0x2620]
lea eax, [ebp - 0x2620]
push eax
lea edx, [ebp - 0x2628]
call fcn.00429ee0
add esp, 8
mov edi, dword [ebp - 0x2620]
mov dword [ebp - 0x25d0], eax
test ebx, ebx
je 0x42a375
test dword [ebp + 0x20], 0x400
je 0x42a30b
cmp edi, 0x2000
ja 0x42a33b
mov eax, esi
shr eax, 1
cmp word [ebx + eax*2], 0
jne 0x42a2f7
cmp word [ebx + eax*2 + 2], 0
je 0x42a306
add esi, 2
lea eax, [edi + esi]
cmp eax, 0x2000
jbe 0x42a2e4
jmp 0x42a33b
add esi, 4
jmp 0x42a33b
cmp edi, 0x2000
ja 0x42a33b
mov ecx, ebx
mov eax, edi
sub ecx, edi
nop dword [eax]
cmp byte [ecx + eax], 0
jne 0x42a32d
cmp byte [ebx + esi + 1], 0
je 0x42a338
inc eax
inc esi
cmp eax, 0x2000
jbe 0x42a320
jmp 0x42a33b
add esi, 2
lea eax, [edi + esi]
mov dword [ebp - 0x2624], eax
cmp eax, 0x2000
ja 0x42a369
push esi
push ebx
push dword [ebp - 0x2628]
call fcn.004cdf10
mov dword [ebp - 0x25e4], edi
add esp, 0xc
mov edi, dword [ebp - 0x2624]
jmp 0x42a37b
mov dword [ebp - 0x25e4], 0
jmp 0x42a37b
mov dword [ebp - 0x25e4], esi
xor esi, esi
mov dword [ebp - 0x261c], edi
push esi
lea eax, [ebp - 0x2640]
push eax
push edi
mov edi, dword [ebp - 0x2630]
lea eax, [ebp - 0x261c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x42a40f
push 0xfa
call ebx
push esi
lea eax, [ebp - 0x2644]
push eax
push 0x1c
lea eax, [ebp - 0x26a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a415
push dword [ebp - 0x2694]
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp - 0x26a4]
mov esi, eax
mov dword [ebp - 0x262c], edx
test edx, edx
je 0x42a401
movups xmm0, xmmword [ebp - 0x269c]
movups xmmword [0x55abe4], xmm0
jmp 0x42a415
push dword [ebp - 0x26a0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42a415
mov dword [ebp - 0x262c], esi
mov ecx, dword [0x55abe4]
test ecx, ecx
mov eax, ecx
cmove eax, esi
cmovne esi, ecx
mov dword [0x55abe4], eax
test esi, esi
jne 0x42a435
push 0x1388
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x262c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret