Function at 0x10008010
Capabilities:
Copy file
Create directory
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x638], edx
mov dword [ebp - 0x630], esi
test esi, esi
jne 0x1000804e
mov eax, 0xe0001002
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
push 0
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push eax
mov dword [ebp - 0x634], 1
mov ebx, 0xe0001006
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
call dword [sym.imp.iImportLib.dll_int___cdecl_elex::filepath::ReadDataFileW_void____unsigned_long_int___wchar_t_const__const__unsigned_long_int_]
mov edi, dword [ebp - 0x62c]
add esp, 0x10
test eax, eax
je 0x1000830d
test edi, edi
je 0x1000830d
mov ecx, dword [ebp - 0x628]
cmp ecx, 0x20
jbe 0x1000830d
cmp dword [edi], 0x75706764
jne 0x10008312
mov eax, dword [edi + 0xc]
add eax, dword [edi + 4]
cmp eax, ecx
jne 0x10008312
mov esi, dword [edi + 0x14]
mov edx, dword [edi + 4]
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0x62c]
call fcn.1000ba00
cmp esi, eax
jne 0x100082ff
mov ecx, dword [edi + 4]
add ecx, dword [ebp - 0x62c]
mov edx, dword [edi + 0xc]
call fcn.1000ba00
cmp dword [edi + 0x10], eax
jne 0x100082ff
mov esi, dword [edi + 4]
mov ecx, dword [ebp - 0x62c]
xor edx, edx
add esi, ecx
mov dword [ebp - 0x634], 0
mov ah, 0x5a
cmp dword [edi + 0xc], edx
jbe 0x1000813c
mov cl, byte [edx + esi]
mov al, cl
xor al, dl
xor al, ah
mov byte [edx + esi], al
inc edx
mov ah, cl
cmp edx, dword [edi + 0xc]
jb 0x10008122
mov ecx, dword [ebp - 0x62c]
mov esi, dword [ebp - 0x630]
mov eax, dword [edi + 4]
push esi
push dword [edi + 0xc]
add eax, ecx
push eax
call dword [sym.imp.iImportLib.dll_int___cdecl_elex::filepath::WriteDataFileW_void___unsigned_long_int__wchar_t_const__const_]
add esp, 0xc
test eax, eax
je 0x10008305
push dword [ebp - 0x62c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0x62c], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x214]
call fcn.10007e70
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.iImportLib.dll_SzExtract]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10008305
mov ecx, esi
call fcn.100049e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push eax
call sub.MSVCR110.dll_memset
mov edi, dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0xc
lea eax, [ebp - 0x41c]
push str.msvcp110.dll
push 0x10049c30
push 0x10035f44
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x214]
push str.msvcp110.dll
push eax
push str._s_s
lea eax, [ebp - 0x624]
push 0x104
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0x14
lea eax, [ebp - 0x624]
push ebx
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
push str.msvcr110.dll
push 0x10049c30
push 0x10035f44
lea eax, [ebp - 0x41c]
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x214]
push str.msvcr110.dll
push eax
push str._s_s
lea eax, [ebp - 0x624]
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x624]
push ebx
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
push str.uninstall.exe__upgrade
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
mov edx, dword [ebp - 0x638]
add esp, 0xc
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.10007f40
mov edi, dword [ebp - 0x62c]
mov esi, dword [ebp - 0x630]
add esp, 4
mov ebx, eax
jmp 0x10008312
mov esi, dword [ebp - 0x630]
mov edi, dword [ebp - 0x62c]
jmp 0x10008312
mov ebx, 0xe0001004
test edi, edi
je 0x10008336
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x62c]
add esp, 4
mov ecx, 0x8123
test edi, edi
cmovne eax, ecx
mov dword [ebp - 0x62c], eax
test ebx, ebx
je 0x10008358
cmp dword [ebp - 0x634], 0
je 0x10008358
push dword [ebp + 8]
mov edx, dword [ebp - 0x638]
mov ecx, esi
call fcn.10007f40
add esp, 4
mov ebx, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret