Function at 0x40edd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4782b6
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4b4]
mov edx, dword [0x4a743c]
mov edi, dword [esp + 0x4b8]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
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 0x483218
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 0x40eeb4
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 0x40eead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40f016
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 0x40eedd
mov dword [esp + 0x1c], 0x10
jmp 0x40eee8
mov ecx, 0x10
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + esi]
push edi
call fcn.00468318
push edi
mov ebp, eax
call fcn.00468318
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 0x40ef32
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.00452d30
push 0x10
push 0x10
push 0x48323c
push str.0b1e96db05d64ea4
lea ecx, [esp + 0x38]
mov byte [esp + 0x4b8], 1
call fcn.00452d50
push 0
push edi
push ebx
push ebp
lea ecx, [esp + 0x38]
call fcn.00453fc0
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 0x40efcd
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.00452d40
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 0x40eea1
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.00452d40
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 0x40f014
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.004764f6
add esp, 0x498
ret