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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae0c3
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x614040]
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 0x561687
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x56187b
dec eax
je 0x5616ad
dec eax
jne 0x561871
mov eax, dword [ebp + 8]
mov edi, dword [eax]
cmp edi, dword [eax + 4]
je 0x561871
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 0x56159e
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 0x5615d6
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x5616a3
cmp eax, dword [esi - 8]
jg 0x5616a3
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 0x561644
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 0x561652
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 0x561672
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 0x561556
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.00527e2c
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 0x56183d
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 0x561708
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 0x56177c
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x5616a3
cmp eax, dword [esi - 8]
jg 0x5616a3
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x21c]
push 0x5e8ed0
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 0x5617ef
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push 0x5e8edc
push eax
call fcn.00407d40
push 0x5e8ed4
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 0x5617e5
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 0x561808
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 0x561828
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 0x5616c0
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 0x561687
mov eax, 0x20
jmp 0x561687
push 0x20005
mov edx, esi
lea ecx, [ebp - 0x220]
call fcn.0058d5b0
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00589dc0
mov edi, dword [ebp - 0x220]
or esi, 0xffffffff
cmp dword [edi - 0xc], 0
jne 0x561922
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 0x56191c
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.005291b2
mov eax, dword [ebp - 0x21c]
add esp, 0x20
test eax, eax
je 0x5619bb
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
cmp esi, dword [ecx + 4]
je 0x5619a5
mov edi, ecx
push dword [esi]
push 0x5e88ac
push eax
call fcn.005292c1
mov eax, dword [ebp - 0x21c]
add esi, 0x1c
add esp, 0xc
cmp esi, dword [edi + 4]
jne 0x561981
mov edi, dword [ebp - 0x220]
push eax
call fcn.005294d1
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 0x5619e7
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 0x561a04
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 0x561681
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x561681