Function at 0x41318f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push edi
mov dword [ebp - 0x140], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 1
mov byte [ebp - 0x118], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x10]
call fcn.004044f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.004044f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.004044f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.004044f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004044f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.0043d72e
lea ecx, [ebp - 0x120]
call fcn.0043d72e
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x134]
push edx
mov ecx, dword [ebp - 0x140]
call fcn.0040c19f
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x120]
call fcn.0043d8dc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x134]
call fcn.0043d7a3
push 0x46c9c4
push str.Samsung
lea ecx, [ebp + 8]
call fcn.0043c131
lea ecx, [ebp + 8]
call fcn.0043c826
lea ecx, [ebp + 8]
call fcn.0043c7da
mov edx, dword [ebp - 0x140]
add edx, 0x590
push edx
lea ecx, [ebp - 0x11c]
call fcn.0043d8dc
mov eax, dword [ebp + 8]
push eax
push str.SetLiveUpdateRegValue::_szModelName_is__s
call fcn.00413e70
add esp, 8
push 0x46c9c8
lea ecx, [ebp + 8]
push ecx
call fcn.00413d20
and eax, 0xff
test eax, eax
je 0x4133a5
lea ecx, [ebp - 0x130]
call fcn.004044f0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
push edx
push str.Model_Name_is_:__n_s
lea eax, [ebp - 0x130]
push eax
call fcn.0043c7c7
add esp, 0xc
push str.SetLiveUpdateRegValue::_szModelName_is_empty
call fcn.00413e70
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x130]
call fcn.0043d7a3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0043d7a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043d7a3
jmp 0x4138d1
lea ecx, [ebp - 0x120]
call fcn.00404560
push eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, 0x467e38
call fcn.00415d08
test eax, eax
je 0x413419
push 0x46c9cc
lea edx, [ebp - 0x118]
push edx
call fcn.0042a630
add esp, 8
test eax, eax
jne 0x4133f1
lea eax, [ebp - 0x118]
push eax
call fcn.0042a0a0
add esp, 4
test eax, eax
je 0x413405
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x120]
call fcn.0043d92c
jmp 0x413419
mov edx, dword [ebp - 0x120]
push edx
push 0x460318
call fcn.00413e70
add esp, 8
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x11c]
call fcn.00404560
push eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, 0x467e38
call fcn.00415d08
test eax, eax
je 0x4134a3
push 0x46c9d0
lea edx, [ebp - 0x118]
push edx
call fcn.0042a630
add esp, 8
test eax, eax
jne 0x41347b
lea eax, [ebp - 0x118]
push eax
call fcn.0042a0a0
add esp, 4
test eax, eax
je 0x41348f
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.0043d92c
jmp 0x4134a3
mov edx, dword [ebp - 0x11c]
push edx
push str.IN_CMainFrame::SetLiveUpdateRegValue____szDefaultPrinterPort:__s
call fcn.00413e70
add esp, 8
push str.SoftwareSamsungSamsungPrinterLiveUpdateFW
lea ecx, [ebp - 0x18]
call fcn.0043d92c
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00404560
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x413549
push str.SetLiveUpdateRegValue::RegOpenKeyEx___failed
call fcn.00413e70
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0043d7a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043d7a3
jmp 0x4138d1
lea ecx, [ebp - 0x120]
call fcn.00404570
push eax
lea ecx, [ebp - 0x120]
call fcn.00404560
push eax
mov edx, dword [ebp - 0x14]
push edx
push 0
push str.DefaultPrinter
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4135f0
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x460410
call fcn.00413e70
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0043d7a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043d7a3
jmp 0x4138d1
lea ecx, [ebp - 0x11c]
call fcn.00404570
push eax
lea ecx, [ebp - 0x11c]
call fcn.00404560
push eax
mov edx, dword [ebp - 0x14]
push edx
push 0
push str.LastPrinter
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x413697
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x46044c
call fcn.00413e70
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0043d7a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043d7a3
jmp 0x4138d1
lea edx, [ebp - 0x11c]
push edx
push 0x46047c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.0043da38
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.0043d9d2
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x158], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x158]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043d8dc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x13c]
call fcn.0043d7a3
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x138]
call fcn.0043d7a3
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00404560
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4137c5
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SetLiveUpdateRegValue::RegCreateKeyEx___failed
call fcn.00413e70
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0043d7a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043d7a3
jmp 0x4138d1
lea ecx, [ebp + 8]
call fcn.00404570
push eax
lea ecx, [ebp + 8]
call fcn.00404560
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push str.ModelName
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x413863
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SetLiveUpdateRegValue::RegSetValueEx___failed
call fcn.00413e70
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0043d7a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043d7a3
jmp 0x4138d1
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Returning_SetLiveUpdateRegValue...
call fcn.00413e70
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0043d7a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4