Function at 0x5b0f5a0
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1d627
mov eax, dword fs:[0]
push eax
sub esp, 0xac4
mov eax, dword [0x5b920e8]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
push str.CreateHardlinks
mov dword [ebp - 0xacc], esi
mov dword [ebp - 0xac0], eax
mov dword [ebp - 0xac4], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ecx, ecx
mov dword [ebp - 0xabc], edi
lea ebx, [edi + 1]
mov edi, 7
mov eax, esi
mov word [ebp - 0x84c], cx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], 0
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5b0f620
sub eax, ecx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x84c]
call fcn.05a01370
push 4
mov eax, str..
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], 0
call fcn.05a01140
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.05acaa80
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.05acaa80
inc dword [0x5baf1b4]
sub esp, 0x10
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, dword [ebp - 0xac0]
mov dword [ebp - 0xac8], esp
lea edx, [eax + 2]
mov di, word [eax]
add eax, 2
test di, di
jne 0x5b0f6b7
mov edi, dword [ebp - 0xac0]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.05a01370
call fcn.05b0e970
add esp, 0x1c
test al, al
jne 0x5b0f6f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5b0f6f2
mov dword [ebp - 0xabc], eax
push 0x250
lea ecx, [ebp - 0xab8]
push 0
push ecx
call fcn.05acaa80
mov eax, dword [ebp - 0x84c]
add esp, 0xc
cmp dword [ebp - 0x838], 8
jae 0x5b0f71d
lea eax, [ebp - 0x84c]
lea edx, [ebp - 0xab8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xac8], eax
cmp eax, 0xffffffff
je 0x5b0fae3
lea ebx, [ebx]
test ebx, ebx
je 0x5b0fae3
test byte [ebp - 0xab8], 0x10
jne 0x5b0f976
mov eax, edi
lea ecx, [ebp - 0x218]
test edi, edi
jne 0x5b0f76a
mov word [ebp - 0x218], ax
jmp 0x5b0f79e
cmp word [edi], 0
mov edx, 0x103
je 0x5b0f78c
test edx, edx
je 0x5b0f78c
mov di, word [eax]
mov word [ecx], di
add eax, 2
add ecx, 2
dec edx
cmp word [eax], 0
jne 0x5b0f775
xor edx, edx
mov word [ecx], dx
cmp word [eax], dx
je 0x5b0f79e
add eax, 2
cmp word [eax], dx
jne 0x5b0f796
push 1
push 0x5b6b960
lea eax, [ebp - 0xa8c]
push 0x5b6b8ac
push eax
mov ebx, 0x208
lea edi, [ebp - 0x218]
call fcn.05a057c0
add esp, 0x10
mov eax, esi
lea ecx, [ebp - 0x420]
test esi, esi
jne 0x5b0f7db
xor ecx, ecx
mov word [ebp - 0x420], cx
jmp 0x5b0f80f
cmp word [esi], 0
mov edx, 0x103
je 0x5b0f7fd
test edx, edx
je 0x5b0f7fd
mov di, word [eax]
mov word [ecx], di
add eax, 2
add ecx, 2
dec edx
cmp word [eax], 0
jne 0x5b0f7e6
xor edx, edx
mov word [ecx], dx
cmp word [eax], dx
je 0x5b0f80f
add eax, 2
cmp word [eax], dx
jne 0x5b0f807
push 1
push 0x5b6b960
lea eax, [ebp - 0xa8c]
push 0x5b6b8ac
push eax
lea edi, [ebp - 0x420]
call fcn.05a057c0
mov edi, 1
add esp, 0x10
cmp dword [0x5baf1b4], edi
jne 0x5b0f878
lea ecx, [ebp - 0x420]
lea esi, [ebp - 0x868]
call fcn.05b0e890
or dword [ebp - 0xac4], edi
cmp dword [eax + 0x14], 8
jb 0x5b0f85c
mov eax, dword [eax]
push str.setup.exe
push eax
call fcn.05ac8bdb
mov esi, dword [ebp - 0xacc]
add esp, 8
test eax, eax
jne 0x5b0f878
mov bl, 1
jmp 0x5b0f87a
xor bl, bl
test byte [ebp - 0xac4], 1
je 0x5b0f8a2
and dword [ebp - 0xac4], 0xfffffffe
cmp dword [ebp - 0x854], 8
jb 0x5b0f8a2
mov ecx, dword [ebp - 0x868]
push ecx
call fcn.05ac7ecf
add esp, 4
test bl, bl
je 0x5b0f90b
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x5b0fad7
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x5b0f8eb
mov edx, ebx
and edx, 0xfffffffe
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, 0x4000
je 0x5b0fab6
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
jmp 0x5b0fab6
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [ebp - 0x420]
push edx
call edi
test eax, 0x4000
jne 0x5b0fad7
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
setne al
test al, al
je 0x5b0fad7
lea edx, [ebp - 0x218]
push edx
call edi
cmp eax, 0xffffffff
je 0x5b0fab6
test al, 1
je 0x5b0fab6
dec eax
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x5b0fab6
mov ecx, 0x5b6c9b4
lea eax, [ebp - 0xa8c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5b0f9a7
test dx, dx
je 0x5b0f9a3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5b0f9a7
add eax, 4
add ecx, 4
test dx, dx
jne 0x5b0f981
xor eax, eax
jmp 0x5b0f9ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5b0fabc
mov ecx, 0x5b6c9b8
lea eax, [ebp - 0xa8c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5b0f9e6
test dx, dx
je 0x5b0f9e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5b0f9e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5b0f9c0
xor eax, eax
jmp 0x5b0f9eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5b0fabc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x82e]
push edx
mov word [ebp - 0x830], cx
call fcn.05acaa80
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.05acaa80
add esp, 0xc
push 0x208
mov eax, 0x103
mov ecx, edi
lea edx, [ebp - 0x830]
call fcn.05a01a00
add esp, 4
push 1
push 0x5b6b960
lea edx, [ebp - 0xa8c]
push 0x5b6b8ac
push edx
mov ebx, 0x208
lea edi, [ebp - 0x830]
call fcn.05a057c0
push ebx
mov eax, 0x103
mov ecx, esi
lea edx, [ebp - 0x628]
call fcn.05a01a00
add esp, 0x14
push 1
push 0x5b6b960
lea eax, [ebp - 0xa8c]
push 0x5b6b8ac
push eax
lea edi, [ebp - 0x628]
call fcn.05a057c0
lea ecx, [ebp - 0x830]
push ecx
mov edx, edi
push edx
call fcn.05b0f5a0
add esp, 0x18
test eax, eax
jne 0x5b0fadd
mov edi, dword [ebp - 0xac0]
mov ecx, dword [ebp - 0xac8]
lea eax, [ebp - 0xab8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x5b0f740
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xabc], eax
mov eax, dword [ebp - 0xac8]
test eax, eax
je 0x5b0faf4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
dec dword [0x5baf1b4]
cmp dword [ebp - 0x838], 8
jb 0x5b0fb12
mov edx, dword [ebp - 0x84c]
push edx
call fcn.05ac7ecf
add esp, 4
mov eax, dword [ebp - 0xabc]
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.05ac7ec0
mov esp, ebp
pop ebp
ret