Function at 0x40e6a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x477af6
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4b4]
mov edx, dword [0x4a643c]
mov edi, dword [esp + 0x4b8]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
mov dword [esp + 0x20], edi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x4b0]
mov edx, dword [str.SOFTWARESamsungKiesDeviceDB]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x481fd0
push eax
mov dword [esp + 0x4b8], 0
call fcn.00402e80
mov ebx, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push 0x20006
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x40e784
lea eax, [ebx - 0x10]
mov dword [esp + 0x4a8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e77d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40e8e6
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
dec esi
mov eax, esi
and eax, 0xf
jne 0x40e7ad
mov dword [esp + 0x1c], 0x10
jmp 0x40e7b8
mov ecx, 0x10
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + esi]
push edi
call fcn.00467b98
push edi
mov ebp, eax
call fcn.00467b98
mov edx, dword [esp + 0x24]
push edi
push edx
push ebp
mov ebx, eax
call sub.MSVCR90.dll_memset
push edi
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0x20
test esi, esi
jbe 0x40e802
mov eax, dword [esp + 0x20]
push 0
push 0
push esi
push ebp
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x28]
call fcn.004527a0
push 0x10
push 0x10
push 0x481ff4
push str.0b1e96db05d64ea4
lea ecx, [esp + 0x38]
mov byte [esp + 0x4b8], 1
call fcn.004527c0
push 0
push edi
push ebx
push ebp
lea ecx, [esp + 0x38]
call fcn.00453a30
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push edi
push ebx
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebp
mov esi, eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
test esi, esi
je 0x40e89d
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x4a8], 0
call fcn.004527b0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x4a8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40e771
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x4a8], 0
call fcn.004527b0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x4a8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e8e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.00475d76
add esp, 0x498
ret