Function at 0x40c2d0
Capabilities:
Copy file
Create directory
Delete file
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x450324
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x460]
mov eax, dword [esp + 0x464]
xor esi, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], esi
cmp ebp, esi
je 0x40ca67
lea ecx, [esp + 0x244]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x3c]
push edx
push esi
push 0x45d570
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
mov edi, edi
test edi, edi
jne 0x40c384
push edi
lea edx, [esp + 0x40]
push edx
call ebx
inc esi
cmp esi, 5
mov edi, eax
jl 0x40c370
push 6
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x40ca67
lea esi, [esp + 0x2c]
mov eax, ebp
call fcn.0040df90
lea esi, [esp + 0x28]
mov eax, ebp
mov dword [esp + 0x458], 0
call fcn.0040dfb0
mov byte [esp + 0x458], 1
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x458], 2
lea ecx, [eax + 2]
jmp 0x40c3f0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40c3f0
sub eax, ecx
sar eax, 1
lea ecx, [esp + 0x3c]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.004053c0
push 1
push 0x45b7e0
lea edx, [esp + 0x20]
push edx
call fcn.004016d0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.004016d0
mov eax, dword [ebp + 0x28]
cmp eax, 4
jne 0x40c4e0
lea esi, [esp + 0x1c]
mov eax, ebp
call fcn.0040df30
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c47a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x458], 6
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x458], 7
mov ebp, dword [ebp + 0x28]
cmp ebp, 1
je 0x40c63b
cmp ebp, 4
je 0x40c63b
cmp ebp, 2
jne 0x40c62f
push str..dll
jmp 0x40c640
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.0040e010
mov byte [esp + 0x458], 3
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
mov ecx, eax
call fcn.004049c0
mov edi, eax
lea esi, [esp + 0x1c]
mov eax, ebp
mov byte [esp + 0x458], 4
call fcn.0040df30
mov esi, eax
mov byte [esp + 0x458], 5
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40c535
mov eax, dword [eax + 4]
push eax
push edi
call fcn.00405d70
mov edi, dword [edi]
mov eax, dword [esi]
push edi
push 0
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.0041df30
mov esi, eax
mov byte [esp + 0x468], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 3
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 0x40c59c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40c47a
mov byte [esp + 0x458], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c61c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x458], 0xffffffff
lea eax, [ebx - 0x10]
jmp 0x40ca4e
cmp ebp, 3
jne 0x40c64e
push str..dat
jmp 0x40c640
push str..exe
mov ebx, 4
lea eax, [esp + 0x18]
call fcn.004053c0
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov bl, 8
mov byte [esp + 0x458], bl
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x14
or eax, ecx
jge 0x40c692
mov ecx, 0x14
lea eax, [esp + 0x24]
call fcn.00401680
mov ebp, dword [esp + 0x24]
mov eax, 2
push ebp
xor ecx, ecx
mov edx, eax
call fcn.0041de40
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.004240ad
add esp, 0xc
test eax, eax
jl 0x40c787
cmp eax, dword [ebp - 8]
jg 0x40c787
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov word [ebp + eax*2], cx
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], ecx
jne 0x40c791
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x458], 9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40c71b
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.00401680
mov esi, dword [esp + 0x1c]
mov eax, 2
push esi
xor ecx, ecx
lea edx, [eax + 3]
call fcn.0041de40
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004240ad
add esp, 0xc
test eax, eax
jl 0x40c787
cmp eax, dword [esi - 8]
jg 0x40c787
mov edx, dword [esp + 0x14]
push edx
push ebp
xor ecx, ecx
push esi
mov dword [esi - 0xc], eax
push str._s_s_s
lea edi, [esp + 0x30]
mov word [esi + eax*2], cx
call fcn.004018c0
add esi, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x458], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c7a9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x40c7a9
push 0x80070057
call fcn.00401960
mov ecx, dword [esp + 0x14]
push ecx
push ebp
push eax
push str._s_s_s
lea edi, [esp + 0x30]
call fcn.004018c0
add esp, 0x10
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x1c]
call fcn.0040df50
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
mov ebx, eax
mov byte [esp + 0x460], 0xa
call fcn.0040d0e0
add esp, 8
mov byte [esp + 0x458], 0xb
mov ecx, dword [eax]
mov ebx, dword [esp + 0x20]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40c830
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c81f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c81f
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c816
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x20], ebx
jmp 0x40c830
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.004053c0
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x458], 0xa
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c858
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c880
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call edi
mov ecx, dword [esp + 0x18]
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x40c922
add ebp, 0xfffffff0
mov byte [esp + 0x458], 7
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c8c9
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0x458], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x458], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 1
jmp 0x40c9f4
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
lea edi, [ebx - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x40c976
cmp dword [esi + 0xc], 0
jl 0x40c96b
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x40c96b
mov eax, edi
call fcn.00401850
mov ebx, eax
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40c960
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x38]
add ebx, 0x10
mov dword [eax], ebx
jmp 0x40c976
mov ecx, dword [ebx - 0xc]
push ebx
mov ebx, ecx
call fcn.004053c0
mov ebx, 1
add ebp, 0xfffffff0
mov dword [esp + 0x34], ebx
mov byte [esp + 0x458], 7
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9a4
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x458], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9ed
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x458], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0042404d
add esp, 0x448
ret 8