Function at 0x41822d
Capabilities:
Set registry value

Disassembly:
push 0x18
mov eax, 0x45e4b9
call fcn.00441277
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.00403310
push esi
push str.writeValue:_Value_Data:__s
mov byte [ebp - 4], 1
call fcn.00409842
mov eax, dword [ebp + 0x10]
cmp eax, 4
pop ecx
pop ecx
jne 0x418278
push esi
call fcn.0043a5f5
pop ecx
push 4
mov dword [ebp - 0x20], eax
push str.writeValue:__REG_DWORD____sizeOfInputData:__d
jmp 0x4182aa
cmp eax, 1
je 0x41829c
cmp eax, 2
je 0x41829c
cmp eax, 3
je 0x41829c
cmp eax, 7
jne 0x4182b1
push esi
call fcn.0043aad2
pop ecx
inc eax
push eax
push str.writeValue:__Data_type_is_REG_MULTI_SZ:__d
jmp 0x4182aa
push esi
call fcn.0043aad2
pop ecx
inc eax
push eax
push str.writeValue:__Data_type_is_REG_SZ_or_REG_EXPAND_SZ_or_REG_BINARY:__d
call fcn.00409842
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
xor ecx, ecx
cmp edi, ebx
mov byte [ebp - 0xd], bl
jle 0x4182f7
lea esi, [ecx + ecx]
cmp word [esi + eax], 0xa
jne 0x4182e0
cmp byte [ebp - 0xd], bl
jne 0x4182dc
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], 1
call fcn.004036cd
mov word [esi + eax], bx
lea ecx, [esi + 2]
sar ecx, 1
cmp ecx, edi
jl 0x4182c0
cmp byte [ebp - 0xd], bl
je 0x4182f7
push edi
lea ecx, [ebp - 0x14]
call fcn.004036f7
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
add esi, 4
push ebx
mov ecx, esi
call fcn.004036cd
push eax
push dword [ebp + 8]
call fcn.00417fda
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x418346
push eax
push str.writeValue:__WriteValue_failure_during_key_creation___d
call fcn.00409842
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, dword [ebp - 0x1c]
jmp 0x418454
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], ebx
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
je 0x41835b
push 0xf013f
jmp 0x418360
push 0xf003f
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x41842f
push ebx
push str.writeValue:__Key_found_..._:__d
call fcn.00409842
push str.writeValue:__After_addRegistryKey_method_in_writeValue_method__
call fcn.00409842
add esp, 0xc
cmp dword [ebp + 0x10], 4
jne 0x4183a5
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
jmp 0x4183b6
push ebx
lea ecx, [ebp - 0x14]
call fcn.004036cd
lea ecx, [edi + edi]
push ecx
push eax
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, ebx
jne 0x418402
push ebx
push str.Error_while_set_reg_value_:__d
call fcn.00409842
pop ecx
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._________End_Of_writeValue_Method_________
call fcn.00409842
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [esi - 0x10]
call fcn.00401109
xor eax, eax
jmp 0x418454
push edi
push str.writeValue:__Function_WriteValue_failure_:_d
call fcn.00409842
pop ecx
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [esi - 0x10]
call fcn.00401109
mov eax, edi
jmp 0x418454
push esi
push str.writeValue:__Key_open_failure___d
call fcn.00409842
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, esi
call fcn.0044134f
ret 0xc