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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0653
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x616040]
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 ebx, edx
mov dword [ebp - 0x224], ebx
mov eax, ecx
mov dword [ebp - 0x22c], eax
push dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x228], 0x20
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x561ab7
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x561cab
dec eax
je 0x561add
dec eax
jne 0x561ca1
mov eax, dword [ebp + 8]
mov edi, dword [eax]
cmp edi, dword [eax + 4]
je 0x561ca1
or ebx, 0xffffffff
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00403660
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 7
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5619ce
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00402c20
mov esi, dword [ebp - 0x21c]
push 0x104
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x561a06
push dword [esi - 8]
push esi
call fcn.00528e72
add esp, 8
test eax, eax
js 0x561ad3
cmp eax, dword [esi - 8]
jg 0x561ad3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
lea eax, [ebp - 0x234]
push eax
call fcn.004030a0
add esp, 0xc
push 5
push 0
push dword [eax]
mov eax, dword [ebp - 0x22c]
push dword [eax]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x234]
mov edx, ebx
add ecx, 0xfffffff0
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], ecx
add ecx, 0xc
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x561a74
mov edx, dword [ebp - 0x220]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x228]
jge 0x561a82
mov dword [ebp - 0x228], eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561aa2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add edi, 0x1c
cmp edi, dword [eax + 4]
jne 0x561986
mov eax, dword [ebp - 0x228]
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.00527e5c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402740
mov eax, dword [ebp + 8]
mov edi, dword [eax]
cmp edi, dword [eax + 4]
je 0x561c6d
or ebx, 0xffffffff
mov edi, edi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00403660
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561b38
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00402c20
mov esi, dword [ebp - 0x21c]
push 0x104
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x561bac
push dword [esi - 8]
push esi
call fcn.00528e72
add esp, 8
test eax, eax
js 0x561ad3
cmp eax, dword [esi - 8]
jg 0x561ad3
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x21c]
push 0x5eaee0
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00407c60
add esp, 0xc
mov ecx, dword [ebp - 0x224]
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403430
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x244]
jmp 0x561c1f
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push 0x5eaeec
push eax
call fcn.00407d40
push 0x5eaee4
push eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 5
push eax
call fcn.00407c60
add esp, 0x18
mov ecx, dword [ebp - 0x224]
mov byte [ebp - 4], 6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403430
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561c15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561c38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561c58
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add edi, 0x1c
cmp edi, dword [eax + 4]
jne 0x561af0
mov ebx, dword [ebp - 0x224]
mov eax, dword [ebx]
mov ecx, ebx
push 1
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.00407960
mov eax, dword [ebp - 0x22c]
push 5
push 0
push dword [ebx]
push dword [eax]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x561ab7
mov eax, 0x20
jmp 0x561ab7
push 0x20005
mov edx, esi
lea ecx, [ebp - 0x220]
call fcn.0058f8e0
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.0058c100
mov edi, dword [ebp - 0x220]
or esi, 0xffffffff
cmp dword [edi - 0xc], 0
jne 0x561d52
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.ListFile.txt
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00402f60
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.004032d0
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561d4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x220]
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00403660
lea ebx, [eax + 0x10]
mov dword [ebp - 0x230], ebx
push edi
push ebx
push str._s__d__s_
push dword [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00402d50
push str.w_ccsUTF_8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push edi
push eax
call fcn.005291e2
mov eax, dword [ebp - 0x21c]
add esp, 0x20
test eax, eax
je 0x561deb
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
cmp esi, dword [ecx + 4]
je 0x561dd5
mov edi, ecx
push dword [esi]
push 0x5ea8b4
push eax
call fcn.005292f1
mov eax, dword [ebp - 0x21c]
add esi, 0x1c
add esp, 0xc
cmp esi, dword [edi + 4]
jne 0x561db1
mov edi, dword [ebp - 0x220]
push eax
call fcn.00529501
add esp, 4
mov dword [ebp - 0x21c], 0
or esi, 0xffffffff
mov eax, dword [ebp - 0x224]
push 5
push 0
push dword [eax]
mov eax, dword [ebp - 0x22c]
push dword [eax]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x561e17
mov dword [ebp - 0x228], eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561e34
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x561ab1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x561ab1