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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541c38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.00417dac
cmp dword [ebp + 0x10], 0
je 0x402b76
mov bl, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.00417e78
test eax, eax
je 0x402c66
lea ecx, [ebp - 0x30]
call fcn.004179fe
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x30]
call eax
push 0
test eax, eax
je 0x402b54
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x402b20
cmp eax, 0xb7
jne 0x402c66
push 1
push ecx
lea edx, [ebp + 0xc]
mov dword [ebp + 0x10], esp
mov ecx, esp
push edx
call fcn.00404900
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.00404900
mov byte [ebp - 4], bl
call fcn.00402500
add esp, 0xc
jmp 0x402c66
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
jmp 0x402c66
mov bl, 4
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
push 0
push ecx
lea ecx, [ebp - 0x30]
call fcn.00417e78
test eax, eax
je 0x402c66
lea ecx, [ebp - 0x30]
call fcn.004179fe
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x30]
call eax
test eax, eax
je 0x402c52
push 1
push 0x57058c
lea ecx, [ebp + 0xc]
call fcn.00404340
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00418154
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.00404340
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402bfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x402c17
cmp eax, 0xb7
jne 0x402c66
push 0
push ecx
lea edx, [ebp + 0xc]
mov dword [ebp - 0x10], esp
mov ecx, esp
push edx
call fcn.00404900
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.00404900
mov byte [ebp - 4], bl
call fcn.00402500
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402c66
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0xb
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [ebp - 0x30]
call fcn.00417918
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00417dde
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret