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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5786a4
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5d52e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [eax]
mov edi, ecx
push eax
mov dword [ebp - 0x228], edi
mov esi, edx
mov dword [ebp - 0x224], 0x20
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x56644c
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x5662a0
dec eax
je 0x5660ce
dec eax
jne 0x566446
mov edi, dword [edi]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x220], edi
cmp edi, dword [eax + 4]
je 0x566446
jmp 0x565f96
mov edi, dword [ebp - 0x220]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401a10
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x565fde
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.004019b0
mov esi, dword [ebp - 0x21c]
mov eax, dword [edi]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x566018
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x5660c4
cmp eax, dword [esi - 8]
jg 0x5660c4
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00401350
mov eax, dword [eax]
mov ecx, dword [ebp - 0x22c]
mov ecx, dword [ecx]
add esp, 0xc
push 5
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x566070
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [ebp - 0x224]
jge 0x56607e
mov dword [ebp - 0x224], edi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5660a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
add eax, 0x1c
mov dword [ebp - 0x220], eax
cmp eax, dword [ecx + 4]
jne 0x565f90
jmp 0x566446
push 0x80070057
call fcn.004010a0
mov edi, dword [edi]
mov edx, dword [ebp - 0x228]
cmp edi, dword [edx + 4]
je 0x56625f
nop
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401a10
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x566128
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.004019b0
mov esi, dword [ebp - 0x21c]
mov eax, dword [edi]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x56619b
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x5660c4
cmp eax, dword [esi - 8]
jg 0x5660c4
mov dword [esi - 0xc], eax
xor ecx, ecx
push 0x5aaa58
lea edx, [ebp - 0x21c]
mov word [esi + eax*2], cx
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.00406e20
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00401790
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x244]
jmp 0x56620e
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x240]
push 0x5aaa64
push edx
call fcn.00406f00
push 0x5aaa5c
push eax
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 5
call fcn.00406e20
add esp, 0x18
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00401790
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x566204
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x56622a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x56624d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x228]
add edi, 0x1c
cmp edi, dword [ecx + 4]
jne 0x5660e0
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
push 1
dec eax
push eax
mov ecx, ebx
call fcn.00406aa0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x22c]
mov ecx, dword [ecx]
push 5
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x566446
mov dword [ebp - 0x224], eax
jmp 0x566446
push esi
mov ecx, 0x20005
lea edi, [ebp - 0x21c]
call fcn.00530ca0
push 0
mov dword [ebp - 4], 0
call fcn.0052c070
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx - 0xc]
add esp, 8
test eax, eax
jne 0x566337
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.ListFile.txt
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00401210
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004015b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x566337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00401a10
lea esi, [eax + 0x10]
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x21c]
push edi
push esi
push str._s__d__s_
push ebx
call fcn.00401cf0
push str.w_ccsUTF_8
lea ecx, [ebp - 0x220]
push edi
push ecx
mov dword [ebp - 0x220], 0
call fcn.005000ef
add esp, 0x20
cmp dword [ebp - 0x220], 0
je 0x5663d5
mov edi, dword [ebp - 0x228]
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x5663b6
mov eax, dword [esi]
mov edx, dword [ebp - 0x220]
push eax
push 0x5aa3d4
push edx
call fcn.00500136
add esi, 0x1c
add esp, 0xc
cmp esi, dword [edi + 4]
jne 0x566397
mov eax, dword [ebp - 0x220]
push eax
call fcn.00500347
mov esi, dword [ebp - 0x23c]
add esp, 4
mov dword [ebp - 0x220], 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x22c]
mov ecx, dword [ecx]
push 5
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x5663fd
mov dword [ebp - 0x224], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x56641d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x566446
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret