Function at 0x436450
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c195f
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x590], ecx
call fcn.00447437
push eax
lea ecx, [ebp - 0x20]
call fcn.00411850
mov dword [ebp - 4], 0
mov dword [ebp - 0x280], 0
push 0x105
lea ecx, [ebp - 0x20]
call fcn.0043c2c0
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4cc]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x280], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.00411480
push 0x4cf750
lea ecx, [ebp - 0x290]
call fcn.00411290
mov byte [ebp - 4], 1
push 0x4cf730
lea ecx, [ebp - 0x28c]
call fcn.00411290
mov byte [ebp - 4], 2
push 0x4c8d8c
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x4b4]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x594], eax
mov eax, dword [ebp - 0x594]
mov dword [ebp - 0x598], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x290]
push ecx
mov edx, dword [ebp - 0x598]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0040f890
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4b4]
sub ecx, 0x10
mov dword [ebp - 0x4e8], ecx
mov ecx, dword [ebp - 0x4e8]
call fcn.00403de0
push 0x4c8d8c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x4b8]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x59c], eax
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x5a0], ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040f890
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x4b8]
sub edx, 0x10
mov dword [ebp - 0x4ec], edx
mov ecx, dword [ebp - 0x4ec]
call fcn.00403de0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4f0], eax
lea ecx, [ebp - 0x27c]
push ecx
mov edx, dword [ebp - 0x4f0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4368e9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0xffffffff
je 0x4368e9
mov edx, dword [ebp - 0x4a0]
and edx, 0x10
je 0x4368e9
mov dword [ebp - 0x4ac], 3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
jne 0x436659
mov dword [ebp - 0x5a4], 0
jmp 0x43672f
mov ecx, dword [ebp - 0x4a8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0x3fffffff
jle 0x43668a
mov dword [ebp - 0x5a8], 0
jmp 0x436723
mov eax, dword [ebp - 0x4a4]
shl eax, 1
call fcn.0048bb30
mov dword [ebp - 0x4fc], esp
mov edx, dword [ebp - 0x500]
mov dword [ebp - 0x5a8], edx
cmp dword [ebp - 0x4fc], 0
je 0x4366bb
cmp dword [ebp - 0x4a8], 0
jne 0x4366c7
mov dword [ebp - 0x5a8], 0
jmp 0x436723
mov eax, dword [ebp - 0x4fc]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x4a4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x4fc]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x4a8]
push eax
push 0
mov ecx, dword [ebp - 0x4ac]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x4f8], eax
cmp dword [ebp - 0x4f8], 0
jne 0x436717
mov dword [ebp - 0x5a8], 0
jmp 0x436723
mov edx, dword [ebp - 0x4fc]
mov dword [ebp - 0x5a8], edx
mov eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x4a8], ecx
cmp dword [ebp - 0x4a8], 0
jne 0x436750
mov dword [ebp - 0x5ac], 0
jmp 0x436826
mov edx, dword [ebp - 0x4a8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0x3fffffff
jle 0x436781
mov dword [ebp - 0x5b0], 0
jmp 0x43681a
mov eax, dword [ebp - 0x4a4]
shl eax, 1
call fcn.0048bb30
mov dword [ebp - 0x508], esp
mov eax, dword [ebp - 0x50c]
mov dword [ebp - 0x5b0], eax
cmp dword [ebp - 0x508], 0
je 0x4367b2
cmp dword [ebp - 0x4a8], 0
jne 0x4367be
mov dword [ebp - 0x5b0], 0
jmp 0x43681a
mov ecx, dword [ebp - 0x508]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x4a4]
shl edx, 1
push edx
mov eax, dword [ebp - 0x508]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x4a8]
push ecx
push 0
mov edx, dword [ebp - 0x4ac]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x504], eax
cmp dword [ebp - 0x504], 0
jne 0x43680e
mov dword [ebp - 0x5b0], 0
jmp 0x43681a
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x5b0], eax
mov ecx, dword [ebp - 0x5b0]
mov dword [ebp - 0x5ac], ecx
mov edx, dword [ebp - 0x5a4]
push edx
mov eax, dword [ebp - 0x5ac]
push eax
call fcn.0048fc01
add esp, 8
test eax, eax
jne 0x4368e9
mov dword [ebp - 0x4bc], 1
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
sub ecx, 0x10
mov dword [ebp - 0x510], ecx
mov ecx, dword [ebp - 0x510]
call fcn.00403de0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
sub edx, 0x10
mov dword [ebp - 0x514], edx
mov ecx, dword [ebp - 0x514]
call fcn.00403de0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28c]
sub eax, 0x10
mov dword [ebp - 0x518], eax
mov ecx, dword [ebp - 0x518]
call fcn.00403de0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x290]
sub ecx, 0x10
mov dword [ebp - 0x51c], ecx
mov ecx, dword [ebp - 0x51c]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
sub edx, 0x10
mov dword [ebp - 0x520], edx
mov ecx, dword [ebp - 0x520]
call fcn.00403de0
mov eax, dword [ebp - 0x4bc]
jmp 0x436d90
call fcn.00447437
push eax
lea ecx, [ebp - 0x284]
call fcn.00411850
mov byte [ebp - 4], 9
push 0x104
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 0x28c]
push ecx
mov edx, dword [ebp - 0x290]
push edx
push str._c_ren___s____s_
lea eax, [ebp - 0x284]
push eax
call fcn.004024b0
add esp, 0x10
mov dword [ebp - 0x28], 3
push str.cmd.exe
push 0x104
lea ecx, [ebp - 0x49c]
push ecx
call fcn.0048cdd9
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x43696d
mov dword [ebp - 0x5b4], 0
jmp 0x436a2b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x436995
mov dword [ebp - 0x5b8], 0
jmp 0x436a1f
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.0048bb30
mov dword [ebp - 0x528], esp
mov ecx, dword [ebp - 0x52c]
mov dword [ebp - 0x5b8], ecx
cmp dword [ebp - 0x528], 0
je 0x4369c0
cmp dword [ebp - 0x14], 0
jne 0x4369cc
mov dword [ebp - 0x5b8], 0
jmp 0x436a1f
mov edx, dword [ebp - 0x528]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x528]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x524], eax
cmp dword [ebp - 0x524], 0
jne 0x436a13
mov dword [ebp - 0x5b8], 0
jmp 0x436a1f
mov ecx, dword [ebp - 0x528]
mov dword [ebp - 0x5b8], ecx
mov edx, dword [ebp - 0x5b8]
mov dword [ebp - 0x5b4], edx
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x436a49
mov dword [ebp - 0x5bc], 0
jmp 0x436b07
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x436a71
mov dword [ebp - 0x5c0], 0
jmp 0x436afb
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.0048bb30
mov dword [ebp - 0x534], esp
mov edx, dword [ebp - 0x538]
mov dword [ebp - 0x5c0], edx
cmp dword [ebp - 0x534], 0
je 0x436a9c
cmp dword [ebp - 0x14], 0
jne 0x436aa8
mov dword [ebp - 0x5c0], 0
jmp 0x436afb
mov eax, dword [ebp - 0x534]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x534]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x530], eax
cmp dword [ebp - 0x530], 0
jne 0x436aef
mov dword [ebp - 0x5c0], 0
jmp 0x436afb
mov edx, dword [ebp - 0x534]
mov dword [ebp - 0x5c0], edx
mov eax, dword [ebp - 0x5c0]
mov dword [ebp - 0x5bc], eax
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x436b25
mov dword [ebp - 0x5c4], 0
jmp 0x436be3
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x436b4d
mov dword [ebp - 0x5c8], 0
jmp 0x436bd7
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.0048bb30
mov dword [ebp - 0x540], esp
mov eax, dword [ebp - 0x544]
mov dword [ebp - 0x5c8], eax
cmp dword [ebp - 0x540], 0
je 0x436b78
cmp dword [ebp - 0x14], 0
jne 0x436b84
mov dword [ebp - 0x5c8], 0
jmp 0x436bd7
mov ecx, dword [ebp - 0x540]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x540]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x53c], eax
cmp dword [ebp - 0x53c], 0
jne 0x436bcb
mov dword [ebp - 0x5c8], 0
jmp 0x436bd7
mov eax, dword [ebp - 0x540]
mov dword [ebp - 0x5c8], eax
mov ecx, dword [ebp - 0x5c8]
mov dword [ebp - 0x5c4], ecx
push 0
mov edx, dword [ebp - 0x5b4]
push edx
mov eax, dword [ebp - 0x5bc]
push eax
mov ecx, dword [ebp - 0x5c4]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x436cc6
mov dword [ebp - 0x4c0], 0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x284]
sub edx, 0x10
mov dword [ebp - 0x548], edx
mov ecx, dword [ebp - 0x548]
call fcn.00403de0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x24]
sub eax, 0x10
mov dword [ebp - 0x54c], eax
mov ecx, dword [ebp - 0x54c]
call fcn.00403de0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
sub ecx, 0x10
mov dword [ebp - 0x550], ecx
mov ecx, dword [ebp - 0x550]
call fcn.00403de0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28c]
sub edx, 0x10
mov dword [ebp - 0x554], edx
mov ecx, dword [ebp - 0x554]
call fcn.00403de0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x290]
sub eax, 0x10
mov dword [ebp - 0x558], eax
mov ecx, dword [ebp - 0x558]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402470
mov eax, dword [ebp - 0x4c0]
jmp 0x436d90
mov dword [ebp - 0x4c4], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x284]
call fcn.00402470
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.00402470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402470
mov eax, dword [ebp - 0x4c4]
jmp 0x436d90
lea esp, [ebp - 0x5cc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret