Function at 0x100026e0
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x240
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x214]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
movdqu xmm0, xmmword [str.winsxs_]
mov edi, eax
sub esp, 8
mov edx, dword [esi + 4]
movups xmmword [ebp + eax*2 - 0x214], xmm0
movzx eax, word [0x10008464]
mov word [ebp + edi*2 - 0x204], ax
mov eax, dword [esi + 0xc]
mov dword [esp], ebx
call sym._build_manifest_filename
test eax, eax
je 0x10002bb7
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
jne 0x100027d0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CopyFileW]
mov dword [ebp - 0x230], eax
call eax
mov dword [ebp - 0x21c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0xc
mov dword [esp], ebx
mov dword [ebp - 0x228], eax
call eax
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x100027f2
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
test byte [0x10006018], 4
jne 0x10002b3a
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x10006018], 8
jne 0x10002b0f
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x218]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
mov eax, dword [esi + 0xc]
call sym._build_assembly_name
mov ebx, eax
test eax, eax
je 0x10002bb7
mov eax, dword [esi + 0x14]
add edi, 8
add esi, 0x14
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x234], edi
cmp eax, esi
je 0x10002aa2
lea esi, [esi]
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov ecx, eax
test eax, eax
je 0x10002ac0
mov eax, dword [ebp - 0x224]
sub ecx, eax
mov eax, dword [ebp - 0x220]
mov edx, ecx
mov edi, dword [eax + 8]
sar edx, 1
add edx, 1
cmp word [edi], 0
je 0x10002897
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10002888
sub eax, edi
sar eax, 1
add edx, eax
lea eax, [edx + edx + 2]
mov dword [ebp - 0x22c], ecx
mov esi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x10002afe
mov ecx, dword [ebp - 0x22c]
add ecx, 2
mov dword [esp + 8], ecx
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x224]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x22c]
add ecx, eax
xor eax, eax
lea esi, cs:[esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x100028f8
mov eax, dword [ebp - 0x218]
lea edx, [eax + 2]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 8]
cmp word [ecx], 0
je 0x10002b08
mov eax, ecx
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10002930
sub eax, ecx
sar eax, 1
mov edi, dword [ebp - 0x234]
add edx, edi
add edx, eax
add edx, edx
mov dword [esp], edx
call esi
mov esi, eax
test eax, eax
je 0x10002bd0
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x214]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x10002960
cmp word [esi], 0
mov edx, esi
je 0x10002989
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10002980
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10002990
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov edx, esi
sub esp, 8
cmp word [esi], 0
je 0x100029c9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x100029c0
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + 0x100081b0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100029d0
mov eax, dword [ebp - 0x220]
cmp word [esi], 0
mov edx, esi
mov edi, dword [eax + 8]
je 0x10002a01
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x100029f8
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10002a08
movzx eax, word [esi]
mov edi, esi
test ax, ax
je 0x10002a40
lea esi, [esi]
mov dword [esp], eax
add edi, 2
call dword [sym.imp.ucrtbase.dll_towlower]
mov word [edi - 2], ax
movzx eax, word [edi]
test ax, ax
jne 0x10002a28
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
mov edi, dword [ebp - 0x230]
call edi
mov edi, eax
mov eax, dword [ebp - 0x21c]
sub esp, 0xc
mov dword [esp], eax
mov eax, dword [ebp - 0x228]
call eax
mov dword [esp], esi
mov eax, dword [ebp - 0x228]
call eax
test edi, edi
je 0x10002b67
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x238]
mov eax, dword [eax]
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x10002840
xor esi, esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x228]
call eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x2f
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov ecx, eax
test eax, eax
jne 0x10002861
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x10002bc1
mov esi, 0x8007000e
jmp 0x10002aa4
xor eax, eax
jmp 0x1000293d
mov dword [esp + 0xc], str.manifest_exists__skipping_install_n
xor esi, esi
mov dword [esp + 8], str.install_assembly
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100027e8
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.failed_to_copy_manifest_file_0x_08lx_n
mov dword [esp + 8], str.install_assembly
mov dword [esp + 4], 0x10006018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x100027c6
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
test byte [0x10006018], 4
je 0x10002aa4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.failed_to_copy_file_0x_08lx_n
mov dword [esp + 8], str.install_assembly
mov dword [esp + 4], 0x10006018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10002aa4
mov esi, 0x8007000e
jmp 0x100027c6
mov esi, dword [sym.imp.ucrtbase.dll_malloc]
jmp 0x10002908
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
mov eax, dword [ebp - 0x228]
call eax
jmp 0x10002afe