Function at 0x435ee0
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486f62
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, byte [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x438], eax
test bl, bl
je 0x435fa9
push 0x49a834
push 0x49a848
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435f4d
lea ecx, [ebp - 0x49c]
push ecx
call eax
jmp 0x435f5a
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x49c]
cmp eax, 6
je 0x435fa4
cmp eax, 9
je 0x435f9d
push eax
lea eax, [ebp - 0x218]
push 0x49a868
push eax
call fcn.00401f70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x10
push 0x48f9d4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x436292
mov esi, 0x51c
jmp 0x435fa9
mov esi, 0x51d
push edi
call fcn.00468d70
push eax
push edi
call fcn.00468f00
add esp, 0xc
mov dword [ebp - 0x424], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x103
push eax
push 0
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x436278
test bl, bl
je 0x43611d
lea eax, [ebp - 0x218]
push eax
call fcn.00468d70
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00468f00
mov dword [ebp - 0x430], eax
push 0x49a8cc
mov byte [ebp - 4], 1
call fcn.00468d70
push eax
push 0x49a8cc
call fcn.00468f00
mov dword [ebp - 0x428], eax
push 0x49a8a8
mov byte [ebp - 4], 2
call fcn.00468d70
push eax
push 0x49a8a8
call fcn.00468f00
add esp, 0x24
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00468a70
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, eax
call fcn.00468a70
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.00468b50
mov ecx, dword [ebp - 0x43c]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4360a5
call fcn.00468f40
mov ecx, dword [ebp - 0x434]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4360b8
call fcn.00468f40
mov ecx, dword [ebp - 0x42c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4360cb
call fcn.00468f40
mov ecx, dword [ebp - 0x428]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4360de
call fcn.00468f40
mov ecx, dword [ebp - 0x430]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4360f1
call fcn.00468f40
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0046f665
xor ecx, ecx
push 0x49a8d0
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call fcn.00470e68
add esp, 0x14
test esi, esi
je 0x43619d
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x49a8e0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0046f665
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00470e68
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0046d74c
lea eax, [ebp - 0x218]
push eax
movzx eax, si
push eax
call fcn.0040ebe0
add esp, 0x28
test al, al
jne 0x43619d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436278
push 0x38
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.0046e870
add esp, 0xc
mov dword [ebp - 0x478], 0x3c
cmp byte [ebp - 0x438], 0
mov ecx, 0x499b20
mov eax, 0x49a8f0
mov dword [ebp - 0x474], 0x40
cmove eax, ecx
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x424]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x468], eax
call fcn.004689b0
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x478]
push eax
call esi
test eax, eax
jne 0x436249
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x436249
push 0x103
lea eax, [ebp - 0x218]
push eax
push 0
call edi
lea eax, [ebp - 0x478]
push eax
call esi
test eax, eax
je 0x436278
push 0xffffffffffffffff
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x436274
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x43627a
xor bl, bl
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x436290
call fcn.00468f40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret