Function at 0x410190
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45ef8e
mov eax, dword fs:[0]
push eax
mov eax, 0x1a68
call fcn.0044bf30
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x1a64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x1a7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a98]
mov ebx, dword [esp + 0x1a8c]
mov ebp, dword [esp + 0x1a90]
mov esi, dword [esp + 0x1a94]
push str.KMPRNAPI::SetDefaultProfile_n
mov edi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
call fcn.0043e2c0
add esp, 4
test ebx, ebx
je 0x410852
cmp word [ebx], 0
je 0x410852
push 0x34
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x24], eax
xor ebp, ebp
mov dword [esp + 0x1a84], ebp
cmp eax, ebp
je 0x410244
mov ecx, eax
call fcn.00447f10
mov dword [esp + 0x1c], eax
jmp 0x410248
mov dword [esp + 0x1c], ebp
push 0x104
lea ecx, [esp + 0x444]
push ecx
push ebp
mov dword [esp + 0x1a90], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x440]
push 0x5c
push edx
call fcn.0044b43c
add esp, 8
cmp word [eax], bp
je 0x410283
xor ecx, ecx
mov word [eax], cx
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x23c]
push str._sKxTmpSvc.exe
push eax
call esi
lea ebx, [edi + 0xc38]
push ebx
lea ecx, [esp + 0x40]
push str._sKxTmpSvc.exe
push ecx
call esi
add esp, 0x18
xor eax, eax
jmp 0x4102c0
movzx ecx, word [esp + eax + 0x30]
mov word [esp + eax + 0x1070], cx
add eax, 2
cmp cx, bp
jne 0x4102c0
mov ecx, dword [edi + 4]
push ebp
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x240]
push eax
call fcn.004449d0
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
push eax
push str.CopyFile____ld_n
call fcn.0043e2c0
add esp, 8
push 0x80
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x23c]
push str._sSetPrnt.exe
push eax
call esi
push ebx
lea ecx, [esp + 0x40]
push str._sSetPrnt.exe
push ecx
call esi
mov ecx, dword [edi + 4]
add esp, 0x18
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x240]
push eax
call fcn.004449d0
call ebp
push eax
push str.CopyFile____ld_n
call fcn.0043e2c0
add esp, 8
push 0x80
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x23c]
push str._sKcProfInst.dll
push eax
call esi
push ebx
lea ecx, [esp + 0x40]
push str._sKcProfInst.dll
push ecx
call esi
mov ecx, dword [edi + 4]
add esp, 0x18
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x240]
push eax
call fcn.004449d0
call ebp
push eax
push str.CopyFile____ld_n
call fcn.0043e2c0
add esp, 8
push 0x80
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x23c]
push str._sKcProfInst64.dll
push eax
call esi
push ebx
push str._sKcProfInst64.dll
lea ecx, [esp + 0x44]
push ecx
call esi
mov ecx, dword [edi + 4]
add esp, 0x18
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x240]
push eax
call fcn.004449d0
call ebp
push eax
push str.CopyFile____ld_n
call fcn.0043e2c0
add esp, 8
push 0x80
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x23c]
push str._sKmInst32.exe
push eax
call esi
push ebx
lea ecx, [esp + 0x40]
push str._sKmInst32.exe
push ecx
call esi
push ebx
push str.current_working_directory___s__n
call fcn.0043e2c0
mov ecx, dword [edi + 4]
add esp, 0x20
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x240]
push eax
call fcn.004449d0
call ebp
push eax
push str.CopyFile____ld_n
call fcn.0043e2c0
lea ecx, [esp + 0x38]
push ecx
push str.CopyFile____s_n
call fcn.0043e2c0
lea edx, [esp + 0x450]
push edx
push str.CopyFile___wszSrcPath__s_n
call fcn.0043e2c0
add esp, 0x18
push 0x80
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x440]
push ecx
lea edx, [esp + 0x23c]
push str._sKmInst64.exe
push edx
call esi
push ebx
lea eax, [esp + 0x40]
push str._sKmInst64.exe
push eax
call esi
add esp, 0x18
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x240]
push edx
call fcn.004449d0
call ebp
push eax
push str.CopyFile____ld_n
call fcn.0043e2c0
lea eax, [esp + 0x38]
push eax
push str.CopyFile____s_n
call fcn.0043e2c0
lea ecx, [esp + 0x450]
push ecx
push str.CopyFile___wszSrcPath__s_n
call fcn.0043e2c0
add esp, 0x18
push 0x80
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1070]
push eax
push str.Kyocera_Mita_Remote_Installer_Temporary_Service
push str.KxTmpSvc
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00447810
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push str.KxTmpSvc
push edx
call fcn.00447b10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov dword [esp + 0x24], eax
test eax, eax
je 0x41060d
mov edx, dword [esp + 0x14]
push eax
push edx
push str.RegConnectRegistry_failed_____s___ld__n
call fcn.0043e2c0
add esp, 0xc
cmp dword [esp + 0x24], 0x35
mov dword [esp + 0x18], 0
jne 0x41060d
push str.__Try_to_start_Remote_Registry_service_n
call fcn.0043e2c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0
push str.RemoteRegistry
push eax
call fcn.00447b10
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
push edx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x41060d
push eax
mov eax, dword [esp + 0x18]
push eax
push str.RegConnectRegistry_failed_____s___ld__n
call fcn.0043e2c0
add esp, 0xc
push str.Set_default_profile_n
call fcn.0043e2c0
add esp, 4
cmp dword [esp + 0x18], 0
je 0x4107fd
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xe68]
push ecx
mov ecx, dword [edi + 4]
push 0
push edx
call fcn.004434c0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x238]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410650
lea eax, [esp + 0xe68]
push eax
push ebx
lea ecx, [esp + 0x38]
push 0x461a90
push ecx
call esi
mov ecx, dword [edi + 4]
add esp, 0x10
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x240]
push eax
call fcn.004449d0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x23c]
push edx
push str.CopyFile_____s_____s__n
call fcn.0043e2c0
add esp, 0xc
call ebp
push eax
push str.CopyFile____ld_n
call fcn.0043e2c0
add esp, 8
push 0x80
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0xe6c]
push edx
push eax
lea ecx, [esp + 0x1284]
push str.SETPROFILE___s____s____s_
push ecx
call esi
mov ecx, dword [edi + 4]
add esp, 0x14
xor esi, esi
xor ebx, ebx
call fcn.00444240
test eax, eax
jne 0x41071a
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 4]
push edx
call fcn.00447020
cmp eax, 0x100
jle 0x41071a
mov esi, 0x20119
mov ebx, 0x20106
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x127c]
push eax
push str.SetPrn
push 0x4618d4
push ecx
call fcn.0044a440
add esp, 0x14
test eax, eax
je 0x4107db
mov edx, dword [esp + 0x18]
push 0xf003f
push str.SetErr
push 0x4618d4
push edx
call fcn.0044a540
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add esp, 0x10
push 0x80
push str.KxTmpSvc
push eax
mov ecx, edi
call fcn.00447be0
mov edx, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x127c]
push ecx
push str.SetErr
push 0x4618d4
push edx
call fcn.0044a470
add esp, 0x14
test eax, eax
je 0x4107cf
lea eax, [esp + 0x1278]
push eax
push str.ERROR___s_n
call fcn.0043e2c0
lea ecx, [esp + 0x1286]
push ecx
call fcn.0044b40b
add esp, 0xc
cmp eax, 1
jne 0x4107cf
push str.___Applying_default_device_setting_and_profile___Success._n
call fcn.0043e2c0
jmp 0x4107e9
push str.___Applying_default_device_setting_and_profile___Failed._n
call fcn.0043e2c0
jmp 0x4107e9
push str.___Applying_default_device_setting_and_profile___Failed._n
call fcn.0043e2c0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x410801
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410801
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push str.KxTmpSvc
push edx
mov ecx, edi
call fcn.004479f0
test edi, edi
je 0x410826
mov ecx, edi
call fcn.00448160
push edi
call fcn.0044ad0a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1a7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a64]
xor ecx, esp
call fcn.0044ac80
add esp, 0x1a74
ret 0x14
push str.Apply_default_profile_locally_n
call fcn.0043e2c0
push esi
push ebp
push str.__s_____s__n
call fcn.0043e2c0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x662]
push ecx
mov word [esp + 0x664], ax
call fcn.0044ac90
lea edx, [esp + 0x664]
add esp, 0x1c
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410893
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xa62]
push eax
mov word [esp + 0xa64], dx
call fcn.0044ac90
add esp, 0xc
push 0
lea ecx, [esp + 0xa5c]
push ecx
mov ecx, dword [edi + 4]
push esi
call fcn.004434c0
cmp word [esp + 0xa58], 0
jne 0x41098f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x85a]
push eax
mov word [esp + 0x85c], dx
call fcn.0044ac90
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xc76]
push edx
mov word [esp + 0xc78], cx
call fcn.0044ac90
add esp, 0x18
push 0x104
lea eax, [esp + 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea ecx, [esp + 0xc64]
push ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x858]
push edx
call fcn.004434c0
push esi
lea eax, [esp + 0xc64]
push eax
lea ecx, [esp + 0x650]
push 0x461a90
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x658]
mov edx, esi
mov ecx, eax
add esp, 0x10
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410980
mov edx, dword [esp + 0x28]
push edx
push esi
push ebp
mov ecx, edi
call fcn.0040e750
jmp 0x410828