Function at 0x436ed0
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 0x489972
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x4bc1dc]
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 0x436f99
push 0x4a28a4
push 0x4a28b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x436f3d
lea ecx, [ebp - 0x49c]
push ecx
call eax
jmp 0x436f4a
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x49c]
cmp eax, 6
je 0x436f94
cmp eax, 9
je 0x436f8d
push eax
lea eax, [ebp - 0x218]
push 0x4a28d8
push eax
call fcn.00401f90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x10
push 0x497944
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x437282
mov esi, 0x51c
jmp 0x436f99
mov esi, 0x51d
push edi
call fcn.0046a680
push eax
push edi
call fcn.0046a810
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 0x437268
test bl, bl
je 0x43710d
lea eax, [ebp - 0x218]
push eax
call fcn.0046a680
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0046a810
mov dword [ebp - 0x430], eax
push 0x4a293c
mov byte [ebp - 4], 1
call fcn.0046a680
push eax
push 0x4a293c
call fcn.0046a810
mov dword [ebp - 0x428], eax
push 0x4a2918
mov byte [ebp - 4], 2
call fcn.0046a680
push eax
push 0x4a2918
call fcn.0046a810
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.0046a380
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, eax
call fcn.0046a380
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.0046a460
mov ecx, dword [ebp - 0x43c]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x437095
call fcn.0046a850
mov ecx, dword [ebp - 0x434]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4370a8
call fcn.0046a850
mov ecx, dword [ebp - 0x42c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4370bb
call fcn.0046a850
mov ecx, dword [ebp - 0x428]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4370ce
call fcn.0046a850
mov ecx, dword [ebp - 0x430]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4370e1
call fcn.0046a850
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.004715e5
xor ecx, ecx
push 0x4a2940
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call fcn.00472de8
add esp, 0x14
test esi, esi
je 0x43718d
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x4a2950
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004715e5
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00472de8
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0046f05c
lea eax, [ebp - 0x218]
push eax
movzx eax, si
push eax
call fcn.0040f1c0
add esp, 0x28
test al, al
jne 0x43718d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437268
push 0x38
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.00470180
add esp, 0xc
mov dword [ebp - 0x478], 0x3c
cmp byte [ebp - 0x438], 0
mov ecx, 0x4a1b90
mov eax, 0x4a2960
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.0046a2c0
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 0x437239
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x437239
push 0x103
lea eax, [ebp - 0x218]
push eax
push 0
call edi
lea eax, [ebp - 0x478]
push eax
call esi
test eax, eax
je 0x437268
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 0x437264
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x43726a
xor bl, bl
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x437280
call fcn.0046a850
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.0046f8ce
mov esp, ebp
pop ebp
ret