Function at 0x40eea0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a03ac
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4e3050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [edi], 0
call fcn.0041fee0
test al, al
je 0x40f138
lea eax, [ebp - 0x424]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x40ef0e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x40ef04
xor edx, edx
lea eax, [ebp - 0x424]
cmp word [ebp - 0x424], dx
je 0x40ef32
nop
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x40ef20
cmp ecx, edx
jb 0x40f138
lea ecx, [ebp - 0x424]
xor edx, edx
call fcn.00405ac0
mov ecx, eax
test ecx, ecx
je 0x40ef67
nop word [eax + eax]
mov ax, word [esi + edx*2]
cmp ax, word [ebp + edx*2 - 0x424]
jne 0x40f138
inc edx
cmp edx, ecx
jb 0x40ef50
lea ecx, [ebp - 0x43c]
call fcn.00405ea0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.0047f4f0
add esp, 0xc
lea eax, [ebp - 0x454]
lea ecx, [ebp - 0x43c]
push eax
call fcn.004213f0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40efad
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push str.shim_clone
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x454]
call fcn.00403d10
mov eax, dword [edi]
test eax, eax
je 0x40efe0
push eax
call fcn.0047d9a8
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], cx
je 0x40effb
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x40eff1
lea eax, [ecx + 1]
mov ebx, 2
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d9ad
mov ecx, eax
add esp, 4
mov ax, word [ebp - 0x21c]
mov dword [edi], ecx
test ax, ax
je 0x40f048
lea ebx, [ebp - 0x21c]
movzx edx, ax
sub ebx, ecx
mov word [ecx], dx
add ecx, 2
movzx eax, word [ebx + ecx]
mov edx, eax
test ax, ax
jne 0x40f032
mov ebx, 2
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x45c], eax
mov byte [ebp - 0x458], al
mov byte [ebp - 4], 2
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x458]
test eax, eax
push 0
push dword [edi]
mov edx, 1
cmovne ecx, edx
push esi
mov byte [ebp - 0x458], cl
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [edi + 4], al
je 0x40f0f7
mov eax, dword [edi]
test eax, eax
je 0x40f0a6
push eax
call fcn.0047d9a8
add esp, 4
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x40f0ba
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x40f0b0
lea eax, [ecx + 1]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d9ad
mov ecx, eax
add esp, 4
mov dword [edi], ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x40f0f2
sub esi, ecx
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + ecx]
mov edx, eax
test ax, ax
jne 0x40f0e1
xor eax, eax
mov word [ecx], ax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x458], 0
je 0x40f124
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x458]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x458], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.00403d10
jmp 0x40f19f
mov eax, dword [edi]
test eax, eax
je 0x40f147
push eax
call fcn.0047d9a8
add esp, 4
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x40f15a
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x40f150
lea eax, [ecx + 1]
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d9ad
mov edx, eax
add esp, 4
mov dword [edi], edx
movzx ecx, word [esi]
mov eax, ecx
test cx, cx
je 0x40f197
sub esi, edx
mov word [edx], cx
add edx, 2
movzx eax, word [esi + edx]
mov ecx, eax
test ax, ax
jne 0x40f186
xor eax, eax
mov word [edx], ax
mov byte [edi + 4], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047d4df
mov esp, ebp
pop ebp
ret 4