Function at 0x55b538
Capabilities:
Check if file exists
Copy file
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x55b540
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004070fc
xor eax, eax
push ebp
push 0x55b8a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x1c], 0
jne 0x55b57b
cmp dword [ebx + 0x18], 0xa00000
jb 0x55b6e0
jmp 0x55b581
jl 0x55b6e0
push dword [ebx + 0xc]
push 0x55b8c0
lea edx, [ebp - 0x24]
movzx eax, byte [ebx + 0x20]
call fcn.0041d620
push dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407cc8
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041dd84
test al, al
je 0x55b60c
mov eax, dword [ebp - 8]
call fcn.004079dc
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x55b60c
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x55b606
test ah, 4
je 0x55b606
test al, 0x10
je 0x55b606
mov eax, dword [ebp - 8]
call fcn.004079dc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x55b60c
push esi
call sub.kernel32.dll_SetLastError
movzx esi, byte [ebx + 0x20]
dec esi
cmp esi, 1
jl 0x55b691
push dword [ebx + 0xc]
push 0x55b8c0
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0041d620
push dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407cc8
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041dd84
test al, al
je 0x55b68c
push dword [ebx + 0xc]
push 0x55b8c0
lea edx, [ebp - 0x30]
lea eax, [esi + 1]
call fcn.0041d620
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00407cc8
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
call fcn.004079dc
push eax
mov eax, dword [ebp - 8]
call fcn.004079dc
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
dec esi
test esi, esi
jne 0x55b616
push 0
lea eax, [ebp - 0x38]
mov ecx, 0x55b8d8
mov edx, dword [ebx + 0xc]
call fcn.00407c40
mov eax, dword [ebp - 0x38]
call fcn.004079dc
push eax
mov eax, dword [ebx + 0xc]
call fcn.004079dc
push eax
call sub.kernel32.dll_CopyFileW
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.00443508
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.004434a4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x55b6ec
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
jge 0x55b765
mov edx, dword [ebp - 4]
mov eax, 0x55b8f0
call fcn.00407f1c
test eax, eax
jle 0x55b72b
movzx eax, byte [0x55b8f4]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x55b904
mov edx, 0x55b8f0
mov eax, dword [ebp - 4]
call fcn.00423fb4
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.00407420
mov edx, dword [ebp - 4]
mov eax, 0x55b914
call fcn.00407f1c
test eax, eax
jle 0x55b765
movzx eax, byte [0x55b8f4]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x55b904
mov edx, 0x55b914
mov eax, dword [ebp - 4]
call fcn.00423fb4
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 4]
call fcn.00407420
call fcn.0041fe3c
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov edx, dword [0x57b4f0]
mov eax, 0x55b924
call fcn.00420bec
push dword [ebp - 0x14]
push 0x55b964
call sub.kernel32.dll_GetCurrentThreadId_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.0041d79c
push dword [ebp - 0x44]
push 0x55b974
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00407cc8
call fcn.00427df8
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c9b5c
mov eax, dword [ebp - 0x10]
call fcn.00408ba0
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.00408ba0
cdq
add dword [ebx + 0x18], eax
adc dword [ebx + 0x1c], edx
call fcn.00427df8
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004c9b5c
mov eax, dword [ebp - 0x10]
call fcn.00408ba0
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.00408ba0
cdq
add dword [ebx + 0x18], eax
adc dword [ebx + 0x1c], edx
call fcn.00427df8
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, 0x55b988
call fcn.004c9b5c
mov eax, dword [ebp - 0x10]
call fcn.00408ba0
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.00408ba0
cdq
add dword [ebx + 0x18], eax
adc dword [ebx + 0x1c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55b8ab
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00407078
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00407078
lea eax, [ebp - 0x14]
call fcn.00407018
lea eax, [ebp - 0x10]
mov edx, dword [0x416e68]
call fcn.00408e68
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407078
ret