Function at 0x41aef0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfab8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
call fcn.004147c0
mov dword [ebp - 4], 0
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x41af69
push esi
lea ecx, [ebp - 0x10]
call fcn.00406e80
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], esi
jge 0x41af78
push 0x80070057
call fcn.00406170
push 1
push 0x1a
mov dword [edx - 0xc], esi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push edx
push ecx
mov word [eax + 0x208], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
test eax, eax
js 0x41af6e
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x41af6e
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
lea ecx, [ebp - 0x18]
call fcn.004126b0
mov ecx, eax
call fcn.00412730
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412570
mov eax, dword [ebp - 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [edi + 0x204]
call fcn.004122b0
mov byte [ebp - 4], 4
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
sete bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b020
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41b05e
lea ecx, [ebp - 0x18]
call fcn.004126b0
mov ecx, eax
call fcn.00412730
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412570
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00414f00
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.004124d0
jmp 0x41b0fa
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [edi + 0x204]
call fcn.004122b0
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412570
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b09f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00414260
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
sete bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b0db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41b11d
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00414f00
add esp, 4
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.004124d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b11d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.0041ab30
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x10]
mov eax, dword [eax]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b15e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0041abc0
add esp, 4
mov byte [ebp - 4], 0x10
push 1
push 0x4e82cc
lea ecx, [ebp - 0x14]
call fcn.004104a0
lea edx, [ebp - 0x1c]
push edx
lea ecx, [edi + 0x7a8]
call fcn.004122b0
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004104a0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b1c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00475030
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0049cf70
add esp, 0x14
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [edi + 0x7f0]
call fcn.004122b0
mov esi, eax
mov bl, 0x15
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
call fcn.00476290
mov byte [ebp - 4], 0x16
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0049cf70
add esp, 0x14
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b2a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b2c9
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 - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b2ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret