Function at 0x401080
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x324
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x12c]
push 0x104
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x12c]
test ecx, ecx
je 0x4010fc
lea edx, [esp + 0x12c]
push 0x3a
push edx
call fcn.004120b0
add esp, 8
test eax, eax
je 0x4010fc
lea eax, [esp + 0x12c]
push 0x5c
push eax
call fcn.004120b0
mov edx, eax
mov edi, str.Program_FilesCopyso
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x12c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x4240ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x338]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0xa
and ecx, 3
push str.copyso
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x40116a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x324
ret 0x10
lea ecx, [esp + 0xf8]
mov dword [esp + 0xa0], 0x41f124
call fcn.004014c0
push 0
push 1
lea eax, [esp + 0xac]
push 0
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.00402560
push 0
lea ecx, [esp + 0xa8]
call fcn.004026b0
lea eax, [esp + 0x12c]
push 0x22
mov ecx, dword [esp + 0xa4]
push eax
mov edx, dword [ecx + 4]
lea ecx, [esp + 0xac]
mov dword [esp + edx + 0xa8], 0x41f120
call fcn.00402840
test eax, eax
jne 0x401204
mov ecx, dword [esp + 0xa0]
push eax
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0xa8]
lea ecx, [esp + edx + 0xa4]
or al, 2
push eax
call fcn.00402620
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0xa8]
call fcn.004014f0
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0xa4], 6
je 0x4013b1
lea eax, [esp + 0x12c]
push 0x5c
push eax
call fcn.00412070
mov edx, eax
mov edi, 0x4262f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00411f88
lea edx, [esp + 0x1c]
push edx
call fcn.00411e28
push eax
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x4240c4
push 0x80
lea eax, [esp + ecx + 0x148]
push eax
call fcn.004115c1
add esp, 0x20
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], 0x41f124
call fcn.004014c0
push 0
push 1
lea ecx, [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x7c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.00402560
push 0
lea ecx, [esp + 0x1c]
call fcn.004026b0
lea ecx, [esp + 0x12c]
push 0x22
mov edx, dword [esp + 0x18]
mov esi, 0x41f120
push ecx
lea ecx, [esp + 0x20]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x1c], esi
call fcn.00402840
test eax, eax
jne 0x401326
mov edx, dword [esp + 0x14]
push eax
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x1c]
call fcn.004016c0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x1c]
call fcn.004014f0
mov eax, dword [esp + 0x68]
test eax, eax
je 0x401371
push eax
call fcn.00411215
add esp, 4
test eax, eax
jne 0x401371
push 2
push eax
lea ecx, [esp + 0x20]
call fcn.00402ce0
lea ecx, [esp + 0x18]
test ecx, ecx
jne 0x401385
mov edx, dword [esp + 0x14]
push 0
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x1c]
call fcn.004016c0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + edx + 0x14], esi
call fcn.00401ae0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x14], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x6c]
call fcn.004016b0
lea ecx, [esp + 0xa4]
call fcn.00402910
test eax, eax
jne 0x4013e4
mov edx, dword [esp + 0xa0]
push 0
mov eax, dword [edx + 4]
mov edx, dword [esp + eax + 0xa8]
or edx, 2
lea ecx, [esp + eax + 0xa4]
push edx
call fcn.00402620
lea eax, [esp + 0x230]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str._regsvr32__s__
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 5
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x234]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x130]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x234]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4240b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x234]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0xf8]
call fcn.004016f0
lea ecx, [esp + 0xf8]
call fcn.004016b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x324
ret 0x10