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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x4bc614
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4bcf39
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 1
mov byte [ebp - 0x19], 0
xor ecx, ecx
push ebp
push 0x4bce36
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x10]
call fcn.004be250
lea eax, [ebp - 0x20]
call fcn.0041c804
lea eax, [ebp - 0x20]
mov edx, 0x4bcf5c
call fcn.00407a50
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
call fcn.0040786c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4bc6c5
call sub.kernel32.dll_GetLastError_1
mov edi, eax
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
call fcn.0040786c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4bc6bf
test ah, 4
je 0x4bc6bf
test al, 0x10
je 0x4bc6bf
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
call fcn.0040786c
push eax
call sub.kernel32.dll_RemoveDirectoryW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4bc6c5
push edi
call sub.kernel32.dll_SetLastError
mov eax, dword [0x4cd284]
call fcn.0041c810
mov dl, 1
mov eax, dword [0x4cd284]
call fcn.0041c404
test al, al
jne 0x4bc727
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x3b0]
push eax
push 0x4bcf90
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x39c]
call fcn.00470e54
push dword [ebp - 0x2c]
push 0x4bcfb0
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x28]
mov cl, 1
mov eax, dword [ebp - 0x10]
call fcn.004be96c
call fcn.00406c34
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x270]
xor edx, edx
call fcn.004a1de0
mov edx, 0x4bcfd8
call fcn.004a1d3c
mov dl, 1
mov eax, dword [0x4326d8]
call fcn.0043ed88
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x394]
call fcn.00470e54
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x3b8]
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + 0x3b1]
call fcn.004bc1ac
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38c]
call fcn.004a309c
push 1
push 0x4bd00c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x394]
call fcn.00470e54
push dword [ebp - 0x38]
push 0x4bd034
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.004be96c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3b2], 0
je 0x4bca93
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4bc5d4]
call fcn.00408998
add esp, 4
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4bc8c4
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov dword [eax + ebx*4], 0xffffffff
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4bc844
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4bc8bc
lea ecx, [ebp - 0x3c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x3c]
mov cl, 1
xor edx, edx
call fcn.004bc4d4
mov edx, dword [ebp - 0xc]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + ebx*4], 0xffffffff
jne 0x4bc8bc
mov byte [ebp - 0x19], 0
push 1
lea ecx, [ebp - 0x44]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x44]
push 0x4bd050
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x48]
call fcn.0041facc
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x40]
mov cl, 1
mov eax, dword [ebp - 0x10]
call fcn.004be96c
inc ebx
dec esi
jne 0x4bc821
cmp byte [ebp - 0x19], 0
je 0x4bca6c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4bca6c
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38c]
mov edx, ebx
call fcn.004a3118
lea ecx, [ebp - 0x4c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x270]
mov edx, 1
call fcn.004a1de0
pop edx
call fcn.004a1d3c
mov eax, dword [0x4c72bc]
mov eax, dword [eax]
call fcn.004b7438
movzx eax, byte [0x4bd054]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x50]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x394]
call fcn.00470e54
mov edx, dword [ebp - 0x54]
mov ecx, dword [0x4cd284]
pop eax
call fcn.00422248
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x4bc97b
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4bc993
mov eax, dword [ebp - 4]
call fcn.0041c810
jmp 0x4bca64
mov eax, edx
test eax, eax
je 0x4bc99e
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4bc9b6
mov eax, dword [ebp - 4]
call fcn.0041c810
jmp 0x4bca64
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004bc4d4
mov edi, eax
cmp edi, 0xffffffff
jne 0x4bca0b
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x3b0]
push eax
push dword [ebp - 4]
push 0x4bd050
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x5c]
call fcn.0041facc
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x58]
mov cl, 1
mov eax, dword [ebp - 0x10]
call fcn.004be96c
call fcn.00406c34
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
mov edx, edi
call fcn.004bc568
test al, al
jne 0x4bca5e
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x3b0]
push eax
push dword [ebp - 4]
push 0x4bd050
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x64]
call fcn.0041facc
push dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x60]
mov cl, 1
mov eax, dword [ebp - 0x10]
call fcn.004be96c
call fcn.00406c34
push edi
call sub.kernel32.dll_CloseHandle_1
inc ebx
dec esi
jne 0x4bc8e4
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4bca93
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
cmp eax, 0xffffffff
je 0x4bca8f
push eax
call sub.kernel32.dll_CloseHandle_1
inc ebx
dec esi
jne 0x4bca7e
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3b2], 0
je 0x4bcb65
cmp byte [ebp - 0x19], 0
jne 0x4bcb65
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3b0], 0
jne 0x4bcb1b
push 0x34
push 0x4bd058
push 0x4bd090
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x394]
call fcn.00470e54
push dword [ebp - 0x6c]
push 0x4bd0d8
push 0x4bd124
push 0x4bd138
push 0x4bd124
push 0x4bd1b0
lea eax, [ebp - 0x68]
mov edx, 7
call fcn.00407b30
mov eax, dword [ebp - 0x68]
call fcn.0040786c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00479df8
push eax
call sub.user32.dll_MessageBoxW
cmp eax, 6
jne 0x4bcb61
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3b2], 0
push 1
push 0x4bd1f0
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x394]
call fcn.00470e54
push dword [ebp - 0x74]
push 0x4bd238
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.004be96c
jmp 0x4bcb65
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3b2], 0
jne 0x4bccbb
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4bccbb
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38c]
mov edx, ebx
call fcn.004a3118
lea ecx, [ebp - 0x78]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x270]
mov edx, 1
call fcn.004a1de0
pop edx
call fcn.004a1d3c
mov eax, dword [0x4c72bc]
mov eax, dword [eax]
call fcn.004b7438
movzx eax, byte [0x4bd054]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x7c]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x394]
call fcn.00470e54
mov edx, dword [ebp - 0x80]
mov ecx, dword [0x4cd284]
pop eax
call fcn.00422248
mov eax, dword [ebp - 4]
test eax, eax
je 0x4bcc20
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4bcc35
mov eax, dword [ebp - 4]
call fcn.0041c810
jmp 0x4bccb3
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0040786c
push eax
lea ecx, [ebp - 0x84]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x84]
call fcn.0040786c
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x4bccb3
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x3b0]
push eax
push dword [ebp - 4]
push 0x4bd050
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x8c]
call fcn.0041facc
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x88]
mov cl, 1
mov eax, dword [ebp - 0x10]
call fcn.004be96c
call fcn.00406c34
inc ebx
dec esi
jne 0x4bcb8b
push 1
push 0x4bd00c
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x394]
call fcn.00470e54
push dword [ebp - 0x94]
push 0x4bd278
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x90]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.004be96c
push 0
lea eax, [ebp - 0x98]
mov ecx, 0x4bd29c
mov edx, dword [0x4cd284]
call fcn.00407aa8
mov eax, dword [ebp - 0x98]
call fcn.0040786c
push eax
lea eax, [ebp - 0x9c]
call fcn.0041c804
lea eax, [ebp - 0x9c]
mov edx, 0x4bcf5c
call fcn.00407a50
mov eax, dword [ebp - 0x9c]
call fcn.0040786c
push eax
call sub.kernel32.dll_CopyFileW
lea eax, [ebp - 0xa0]
call fcn.0041c804
lea eax, [ebp - 0xa0]
mov edx, 0x4bcf5c
call fcn.00407a50
mov esi, dword [ebp - 0xa0]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
call fcn.0040786c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4bcdd2
call sub.kernel32.dll_GetLastError_1
mov edi, eax
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
call fcn.0040786c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4bcdcc
test ah, 4
je 0x4bcdcc
test al, 0x10
je 0x4bcdcc
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
call fcn.0040786c
push eax
call sub.kernel32.dll_RemoveDirectoryW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4bcdd2
push edi
call sub.kernel32.dll_SetLastError
mov dl, 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38c]
xor edx, edx
call fcn.004a3118
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x270]
xor edx, edx
call fcn.004a1de0
mov edx, 0x4bd2c0
call fcn.004a1d3c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x270]
mov edx, 1
call fcn.004a1de0
xor edx, edx
call fcn.004a1d3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bce69
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bcf43
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.00406f54
lea eax, [ebp - 0x94]
call fcn.00406ef4
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.00406f54
lea eax, [ebp - 0x80]
call fcn.00406ef4
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00406f54
lea eax, [ebp - 0x74]
call fcn.00406ef4
lea eax, [ebp - 0x70]
call fcn.00406ef4
lea eax, [ebp - 0x6c]
call fcn.00406ef4
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.00406f54
lea eax, [ebp - 0x54]
call fcn.00406ef4
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00406f54
lea eax, [ebp - 0x38]
call fcn.00406ef4
lea eax, [ebp - 0x34]
call fcn.00406ef4
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00406f54
lea eax, [ebp - 0x28]
call fcn.00406ef4
lea eax, [ebp - 0x20]
call fcn.00406ef4
lea eax, [ebp - 0xc]
mov edx, dword [0x4bc5d4]
call fcn.004089a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f54
ret