Function at 0x411fd6
Capabilities:
Copy file
Set registry value

Disassembly:
mov eax, 0x43bbf8
call fcn.00429d5c
sub esp, 0x574
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x23c]
xor ebx, ebx
push eax
mov dword [ebp - 0x558], ebx
call fcn.0042a1b0
lea eax, [ebp - 0x23c]
push eax
call fcn.00429dc0
add esp, 0xc
test eax, eax
jbe 0x41204b
lea eax, [ebp - 0x23c]
push eax
call fcn.00429dc0
pop ecx
lea ecx, [ebp - 0x23c]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x41204b
lea eax, [ebp - 0x23c]
push 0x43da04
push eax
call fcn.0042a1c0
pop ecx
pop ecx
mov esi, dword [ebp + 8]
push dword [esi + 0xcc]
lea ecx, [ebp - 0x580]
call fcn.00411cf4
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.00411ea8
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x580]
mov byte [ebp - 4], 2
call fcn.004116ec
cmp dword [ebp - 0x1c], ebx
jne 0x412095
mov dword [ebp - 0x558], 0x800
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x55c], ebx
je 0x4121cd
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0042a1b0
push dword [esi + 0xc0]
lea eax, [ebp - 0x138]
push eax
call fcn.0042a1c0
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jae 0x4120d8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.0042a1b0
push dword [esi + 0xc0]
lea eax, [ebp - 0x554]
push eax
call fcn.0042a1c0
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004115ed
add esp, 0x18
test eax, eax
jl 0x412157
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x138]
push eax
call edi
test eax, eax
jne 0x412157
lea eax, [ebp - 0x554]
push str..zll
push eax
call fcn.0042a1c0
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x138]
push eax
call edi
or dword [ebp - 0x558], 1
push ebx
mov byte [ebp + 0x13], 1
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jne 0x4121c0
lea eax, [ebp - 0x554]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [ebp - 0x560], eax
jb 0x4121a8
push str.DllRegisterServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4121a8
call eax
cmp eax, ebx
jl 0x4121a8
mov byte [ebp + 0x13], bl
jmp 0x4121a8
push dword [ebp - 0x560]
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp + 0x13], bl
je 0x4121c7
or byte [ebp - 0x557], 1
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [ebp + 0x14], bl
je 0x41243f
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0042a1b0
push dword [esi + 0xc4]
lea eax, [ebp - 0x138]
push eax
call fcn.0042a1c0
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jae 0x41220a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x344]
push eax
call fcn.0042a1b0
push dword [esi + 0xc4]
lea eax, [ebp - 0x344]
push eax
call fcn.0042a1c0
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004115ed
add esp, 0x18
test eax, eax
jl 0x412263
push ebx
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x412263
or dword [ebp - 0x558], 2
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0042a1b0
push dword [esi + 0xc8]
lea eax, [ebp - 0x138]
push eax
call fcn.0042a1c0
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jae 0x412297
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0042a1b0
push dword [esi + 0xc8]
lea eax, [ebp - 0x44c]
push eax
call fcn.0042a1c0
add esp, 0x10
push ebx
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4122d9
or dword [ebp - 0x558], 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x55c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [esi + 0xd0]
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
je 0x412333
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x55c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [esi + 0xd0]
push SysReAllocString
call edi
cmp eax, ebx
jne 0x4123f7
lea eax, [ebp - 0x344]
push eax
call fcn.00429dc0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push str.Path
push dword [ebp - 0x55c]
call edi
lea eax, [ebp - 0x44c]
push eax
call fcn.00429dc0
pop ecx
inc eax
push eax
lea eax, [ebp - 0x44c]
push eax
push 1
push ebx
push str.XPTPath
push dword [ebp - 0x55c]
call edi
mov eax, dword [esi + 0xd8]
cmp dword [eax], ebx
je 0x4123e3
xor edi, edi
mov dword [ebp + 0x10], edi
jmp 0x412399
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
cmp eax, ebx
je 0x4123e3
mov ecx, dword [esi + 0xd8]
push eax
add edi, ecx
call fcn.00429dc0
pop ecx
inc eax
push eax
push dword [edi + 4]
push 1
push ebx
push dword [edi]
push dword [ebp - 0x55c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4123d1
or dword [ebp - 0x558], 0x20
add dword [ebp + 0x10], 8
mov eax, dword [esi + 0xd8]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + eax], ebx
jne 0x412396
push dword [ebp - 0x55c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x55c], ebx
jmp 0x4123fe
or dword [ebp - 0x558], 0x40
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x344]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push esi
call fcn.004112bd
or dword [ebp - 0x558], eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x344]
push eax
push SysReAllocString
push esi
call fcn.004112bd
add esp, 0x20
or dword [ebp - 0x558], eax
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004116ec
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x558]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042a0fe
pop edi
pop esi
pop ebx
leave
ret