Function at 0x5c2d80
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 0x68a9fa
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x745694]
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.005c3b70
mov ecx, eax
mov eax, accept
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 9
jb 0x5c35b9
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x5c2dfa
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.005b3710
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.005bf4d0
add esp, 0x10
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x5c2e67
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c2e5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35be
push edx
push ecx
call fcn.0065cc27
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 0x5c2eb1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c2ea7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35be
push edx
push ecx
call fcn.0065cc27
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
je 0x5c2f7f
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 0x5c2f09
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.006637d2
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 0x5c2f51
push esi
call fcn.006637b7
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
je 0x5c2f7f
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 0x5c336b
call fcn.005c35e0
mov esi, eax
call fcn.005c1530
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 0x5c35b9
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c2fb4
mov ecx, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x5c2fbc
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.005b3710
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c3008
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c2ffe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35b4
push edx
push ecx
call fcn.0065cc27
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 0x5c3059
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.006637d2
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 0x5c30a1
push esi
call fcn.006637b7
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
jne 0x5c2f55
call fcn.005c35e0
mov esi, eax
call fcn.005c18e0
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 0x5c35b9
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c30de
mov ecx, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x5c30e6
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.005b3710
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c3132
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c3128
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35b4
push edx
push ecx
call fcn.0065cc27
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 0x5c319a
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.006637d2
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 0x5c31e2
push esi
call fcn.006637b7
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
jne 0x5c2f55
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.005c3b70
mov ecx, accept
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 9
jb 0x5c35c3
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c3228
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.005b3710
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.005bf4d0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5c32ce
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c329a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c3290
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35c8
push edx
push ecx
call fcn.0065cc27
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 0x5c3316
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c330c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35c8
push edx
push ecx
call fcn.0065cc27
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x5c3388
lea eax, [ebp - 0x28]
push eax
call fcn.005c0790
add esp, 4
test al, al
je 0x5c3388
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004488b0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c336b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c3361
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35b4
push edx
push ecx
call fcn.0065cc27
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.0065cc3a
mov esp, ebp
pop ebp
ret
push 0x208
push 0
mov dword [ebp - 0xac], 0x104
call fcn.006637d2
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 0x5c3507
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.005be600
push 0x70df74
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
call fcn.005b35b0
mov esi, eax
mov byte [ebp - 4], 9
call fcn.005c36b0
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005b3550
push 0x70df74
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
call fcn.005b35b0
mov esi, eax
mov byte [ebp - 4], 0xb
call fcn.005c35e0
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.005b3550
mov esi, eax
add esp, 0x38
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5c3498
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c3464
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c345a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c35cd
push edx
push ecx
call fcn.0065cc27
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.005c0790
add esp, 4
test al, al
je 0x5c3501
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004488b0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x5c3337
push eax
call fcn.006637b7
add esp, 4
jmp 0x5c3337
mov esi, dword [ebp - 0xb0]
push 0x100001
call fcn.005c35e0
push eax
call fcn.005c4fd0
add esp, 8
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x5c355e
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.005be600
add esp, 8
test esi, esi
je 0x5c3337
push esi
call fcn.006637b7
add esp, 4
jmp 0x5c3337
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
test esi, esi
je 0x5c3582
push esi
call fcn.006637b7
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c336b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c3361
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5c3361
call fcn.0066375b
call fcn.00446f60
call fcn.0066375b
call fcn.00446f60
call fcn.0066375b
call fcn.0066375b
int3