Function at 0x5c3110
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 0x68af6a
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x746694]
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.005c3f00
mov ecx, eax
mov eax, accept
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 9
jb 0x5c3949
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x5c318a
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.005b3730
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.005bf860
add esp, 0x10
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x5c31f7
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c31ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c394e
push edx
push ecx
call fcn.0065d157
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 0x5c3241
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c3237
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c394e
push edx
push ecx
call fcn.0065d157
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
je 0x5c330f
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 0x5c3299
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.00663d02
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 0x5c32e1
push esi
call fcn.00663ce7
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
je 0x5c330f
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 0x5c36fb
call fcn.005c3970
mov esi, eax
call fcn.005c18c0
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 0x5c3949
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c3344
mov ecx, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x5c334c
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.005b3730
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c3398
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c338e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c3944
push edx
push ecx
call fcn.0065d157
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 0x5c33e9
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.00663d02
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 0x5c3431
push esi
call fcn.00663ce7
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
jne 0x5c32e5
call fcn.005c3970
mov esi, eax
call fcn.005c1c70
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 0x5c3949
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c346e
mov ecx, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x5c3476
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.005b3730
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c34c2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c34b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c3944
push edx
push ecx
call fcn.0065d157
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 0x5c352a
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push esi
call fcn.00663d02
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 0x5c3572
push esi
call fcn.00663ce7
mov al, byte [ebp - 0xa1]
add esp, 4
test al, al
jne 0x5c32e5
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.005c3f00
mov ecx, accept
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 9
jb 0x5c3953
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5c35b8
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.005b3730
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.005bf860
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5c365e
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c362a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c3620
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c3958
push edx
push ecx
call fcn.0065d157
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 0x5c36a6
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c369c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c3958
push edx
push ecx
call fcn.0065d157
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x5c3718
lea eax, [ebp - 0x28]
push eax
call fcn.005c0b20
add esp, 4
test al, al
je 0x5c3718
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004488b0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c36fb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c36f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c3944
push edx
push ecx
call fcn.0065d157
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.0065d16a
mov esp, ebp
pop ebp
ret
push 0x208
push 0
mov dword [ebp - 0xac], 0x104
call fcn.00663d02
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 0x5c3897
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.005be990
push 0x70eff4
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
call fcn.005b35d0
mov esi, eax
mov byte [ebp - 4], 9
call fcn.005c3a40
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005b3570
push 0x70eff4
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
call fcn.005b35d0
mov esi, eax
mov byte [ebp - 4], 0xb
call fcn.005c3970
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.005b3570
mov esi, eax
add esp, 0x38
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5c3828
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c37f4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c37ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c395d
push edx
push ecx
call fcn.0065d157
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.005c0b20
add esp, 4
test al, al
je 0x5c3891
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004488b0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x5c36c7
push eax
call fcn.00663ce7
add esp, 4
jmp 0x5c36c7
mov esi, dword [ebp - 0xb0]
push 0x100001
call fcn.005c3970
push eax
call fcn.005c5360
add esp, 8
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x5c38ee
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.005be990
add esp, 8
test esi, esi
je 0x5c36c7
push esi
call fcn.00663ce7
add esp, 4
jmp 0x5c36c7
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
test esi, esi
je 0x5c3912
push esi
call fcn.00663ce7
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c36fb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c36f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5c36f1
call fcn.00663c8b
call fcn.00446f60
call fcn.00663c8b
call fcn.00446f60
call fcn.00663c8b
call fcn.00663c8b
int3