Function at 0x4045a0
Capabilities:
Copy file
Create directory
Delete directory
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x489ef8
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov esi, dword [esp + 0x64]
push esi
call fcn.00403bf0
add esp, 4
test eax, eax
jne 0x4045eb
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x4045eb
xor al, al
pop esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
push ebx
push ebp
lea ecx, [esp + 0x40]
call fcn.00460278
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [esp + 0x64], 0
call fcn.00401ee0
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub eax, 0x10
push eax
mov byte [esp + 0x68], 1
call fcn.00401ee0
add eax, 0x10
add esp, 8
mov dword [esp + 0x20], eax
mov byte [esp + 0x60], 2
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x60], 3
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x60], 4
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x60], 5
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 6
call fcn.00402120
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x4046c5
test ecx, ecx
jge 0x4046bb
push 0x80070057
call fcn.00401c10
cmp word [eax], 0x5c
jne 0x4046c5
xor bl, bl
jmp 0x4046c7
mov bl, 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x404705
push 0x48ee88
call fcn.00469d6f
add esp, 4
push eax
push 0x48ee88
lea ecx, [esp + 0x20]
call fcn.00402190
push 0x48ef84
call fcn.00469d6f
add esp, 4
push eax
push 0x48ef84
lea ecx, [esp + 0x20]
call fcn.00402190
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
call fcn.00402120
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x404753
test ecx, ecx
jge 0x404749
push 0x80070057
call fcn.00401c10
cmp word [eax], 0x5c
jne 0x404753
xor bl, bl
jmp 0x404755
mov bl, 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x404793
push 0x48ee88
call fcn.00469d6f
add esp, 4
push eax
push 0x48ee88
lea ecx, [esp + 0x28]
call fcn.00402190
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.0046030d
test eax, eax
je 0x404c18
push edi
lea esp, [esp]
lea ecx, [esp + 0x44]
call fcn.00460020
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], eax
call fcn.004605fa
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x70], 7
call fcn.00403920
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x64], 8
je 0x40483d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40482f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40482f
push eax
call fcn.00401ee0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x404826
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40483d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402060
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x64], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404883
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
call fcn.00460557
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x64], 9
je 0x4048eb
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4048dd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4048dd
push eax
call fcn.00401ee0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4048d4
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x4048eb
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402060
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x64], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40490e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jge 0x40491d
or edi, 0xffffffff
jmp 0x40493c
push 0x48efcc
push eax
call fcn.0046a7bd
add esp, 8
test eax, eax
jne 0x404934
or edi, 0xffffffff
jmp 0x40493c
sub eax, dword [esp + 0x10]
sar eax, 1
mov edi, eax
push edi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.004038f0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x64], 0xa
je 0x4049a6
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x404994
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404994
push eax
call fcn.00401ee0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40498b
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea ebp, [ebx + 0x10]
mov dword [esp + 0x20], ebp
jmp 0x4049a6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00402060
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x64], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402c10
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x64], 0xb
je 0x404a34
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x404a26
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404a26
push eax
call fcn.00401ee0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x404a1d
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x404a34
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402060
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x64], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x48efc8
call fcn.00469d6f
add esp, 4
push eax
push 0x48efc8
lea ecx, [esp + 0x20]
call fcn.00402190
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00403920
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x64], 0xc
je 0x404ae4
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x404ad6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404ad6
push eax
call fcn.00401ee0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x404acd
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x404ae4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402060
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x44]
call fcn.0046021d
test eax, eax
jne 0x404b73
mov eax, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
call dword [eax + 0x38]
test eax, eax
jne 0x404b73
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
jne 0x404c0c
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
je 0x404c0c
lea edx, [esp + 0x10]
push edx
call fcn.00403640
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x404c0c
lea ecx, [esp + 0x44]
call fcn.0046021d
test eax, eax
jne 0x404c0c
mov edx, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
call dword [edx + 0x38]
test eax, eax
je 0x404c0c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004045a0
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call dword [sym.imp.shlwapi.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x404c0c
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
call edi
test al, 1
mov esi, dword [sym.imp.kernel32.dll_SetFileAttributesW]
je 0x404bd7
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
test al, 4
je 0x404bec
and al, 0xfb
push eax
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
test al, 2
je 0x404c01
mov edx, dword [esp + 0x10]
and al, 0xfd
push eax
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
cmp dword [esp + 0x40], 0
jne 0x4047b0
pop edi
lea ecx, [esp + 0x40]
call fcn.0045ff50
mov esi, dword [esp + 0x68]
mov eax, dword [esi]
push eax
call dword [sym.imp.shlwapi.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x404c44
push esi
call fcn.00403640
mov eax, dword [esi]
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x10]
mov byte [esp + 0x60], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x60], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ca9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ccc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], 0xffffffff
call fcn.0046029e
mov ecx, dword [esp + 0x58]
pop ebp
pop ebx
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret