Function at 0x5c7b10
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x691d52
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0
call fcn.005c8900
mov ecx, eax
mov eax, accept
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 9
jb 0x5c8349
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x5c7b8a
mov eax, dword [ecx]
push edx
push eax
push 9
push str.Software_
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x70]
call fcn.005b5360
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push reloc.WS2_32.dll_accept
push eax
call fcn.005c4400
add esp, 0x10
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x5c7bf7
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c7bed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c834e
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x5c7c41
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c7c37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c834e
push edx
push ecx
call fcn.00663ac7
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
je 0x5c7d0f
xor esi, esi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae eax, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push eax
push esi
push 0xfde9
mov dword [ebp - 0xa8], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x5c7c99
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.0066a672
add esp, 8
mov esi, eax
push dword [ebp - 0xa8]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xa1], al
test esi, esi
je 0x5c7ce1
push esi
call fcn.0066a657
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
je 0x5c7d0f
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
jmp 0x5c80fb
call fcn.005c8370
mov esi, eax
call fcn.005c6460
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xa8], ecx
mov ecx, accept
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, dword [ebp - 0xa8]
jb 0x5c8349
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c7d44
mov ecx, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x5c7d4c
mov esi, dword [esi]
push dword [ebp - 0xa8]
push esi
push edx
push ecx
push eax
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x40]
call fcn.005b5360
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c7d98
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c7d8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c8344
push edx
push ecx
call fcn.00663ac7
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
lea ecx, [ebp - 0x28]
xor esi, esi
movq xmm0, qword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0x10
push esi
push esi
movd eax, xmm1
push 0xffffffffffffffff
movups xmmword [ebp - 0x28], xmm1
cmovae ecx, eax
mov dword [ebp - 0xa8], esi
movq qword [ebp - 0x18], xmm0
push ecx
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x5c7de9
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.0066a672
add esp, 8
mov esi, eax
push dword [ebp - 0xa8]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xa1], al
test esi, esi
je 0x5c7e31
push esi
call fcn.0066a657
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
jne 0x5c7ce5
call fcn.005c8370
mov esi, eax
call fcn.005c6670
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xa8], ecx
mov ecx, accept
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, dword [ebp - 0xa8]
jb 0x5c8349
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c7e6e
mov ecx, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x5c7e76
mov esi, dword [esi]
push dword [ebp - 0xa8]
push esi
push edx
push ecx
push eax
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x40]
call fcn.005b5360
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c7ec2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c7eb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c8344
push edx
push ecx
call fcn.00663ac7
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], 0
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
call fcn.00448860
xor esi, esi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae eax, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push eax
push esi
push 0xfde9
mov dword [ebp - 0xa8], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x5c7f2a
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.0066a672
add esp, 8
mov esi, eax
push dword [ebp - 0xa8]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xa1], al
test esi, esi
je 0x5c7f72
push esi
call fcn.0066a657
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
jne 0x5c7ce5
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], al
mov byte [ebp - 4], 5
call fcn.005c8900
mov ecx, accept
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 9
jb 0x5c8353
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c7fb8
mov ecx, dword [eax]
push edx
push ecx
push 9
push str.SOFTWARE_
push eax
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x70]
call fcn.005b5360
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push reloc.WS2_32.dll_bind
push eax
call fcn.005c4400
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5c805e
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c802a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c8020
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c8358
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x58]
call fcn.00448860
lea ecx, [ebp - 0x70]
call fcn.00448860
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x5c80a6
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c809c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c8358
push edx
push ecx
call fcn.00663ac7
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x5c8118
lea eax, [ebp - 0x28]
push eax
call fcn.005c56c0
add esp, 4
test al, al
je 0x5c8118
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004488b0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c80fb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c80f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c8344
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov eax, edi
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.00663ada
mov esp, ebp
pop ebp
ret
push 0x208
push 0
mov dword [ebp - 0xac], 0x104
call fcn.0066a672
mov esi, eax
add esp, 8
mov dword [ebp - 0xb0], esi
push 0
push 0x26
push esi
push 0
mov byte [ebp - 4], 7
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5c8297
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.005c3530
push 0x716504
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
call fcn.005b5200
mov esi, eax
mov byte [ebp - 4], 9
call fcn.005c8440
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005b51a0
push 0x716504
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
call fcn.005b5200
mov esi, eax
mov byte [ebp - 4], 0xb
call fcn.005c8370
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.005b51a0
mov esi, eax
add esp, 0x38
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5c8228
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c81f4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c81ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c835d
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x40]
call fcn.00448860
lea ecx, [ebp - 0x70]
call fcn.00448860
lea ecx, [ebp - 0x58]
call fcn.00448860
lea ecx, [ebp - 0x88]
call fcn.00448860
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 7
call fcn.00448860
lea eax, [ebp - 0x28]
push eax
call fcn.005c56c0
add esp, 4
test al, al
je 0x5c8291
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004488b0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x5c80c7
push eax
call fcn.0066a657
add esp, 4
jmp 0x5c80c7
mov esi, dword [ebp - 0xb0]
push 0x100001
call fcn.005c8370
push eax
call fcn.005c9e60
add esp, 8
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x5c82ee
push 0x104
push esi
push 0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
call fcn.005c3530
add esp, 8
test esi, esi
je 0x5c80c7
push esi
call fcn.0066a657
add esp, 4
jmp 0x5c80c7
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
test esi, esi
je 0x5c8312
push esi
call fcn.0066a657
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c80fb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c80f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5c80f1
call fcn.0066a5fb
call fcn.00446f60
call fcn.0066a5fb
call fcn.00446f60
call fcn.0066a5fb
call fcn.0066a5fb
int3