Function at 0x436b80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589116
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
push 9
push 0x5b1be4
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00402a36
push 7
push 0x5b1bf0
lea ecx, [ebp - 0x64]
call fcn.00403dd2
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x436bf9
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x68]
push ecx
push 0xf003f
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x436dae
lea edx, [ebp - 0x68]
push edx
push 4
push ebx
push str.software
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x436cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004080a8
add esp, 8
mov edi, eax
push 0x27
push str.Failed_to_open_software_key_with_error
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402a36
push edi
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov byte [ebp - 4], 2
call fcn.00407cd9
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x436c93
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x436cb1
mov eax, dword [ebp - 0x48]
push eax
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], edi
jb 0x436ea8
mov ecx, dword [ebp - 0x64]
push ecx
jmp 0x436ea0
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x74]
push edx
push 0x5b1c2c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x436d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004080a8
add esp, 8
mov edi, eax
push 0x29
push str.Failed_to_create_software_key_with_error
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402a36
push edi
lea edx, [ebp - 0x2c]
push edx
push esi
mov byte [ebp - 4], 4
call fcn.00407cd9
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x436d48
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x436d66
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], edi
jb 0x436ea8
mov edx, dword [ebp - 0x64]
push edx
jmp 0x436ea0
mov eax, dword [ebp - 0x68]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [ebp - 0x74]
push ecx
call ebx
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
push edi
push edx
push esi
call fcn.0040731f
cmp dword [ebp - 0x50], 0x10
jmp 0x436e9a
mov ecx, dword [edi + 0x10]
mov edx, 0x10
cmp dword [edi + 0x14], edx
jb 0x436dbd
mov edi, dword [edi]
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x14], edx
jb 0x436dc7
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x68]
push edi
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x68]
push edx
mov dword [ebp - 0x6c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x436e12
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x5afefe
mov ecx, esi
mov byte [esi], bl
call fcn.00402a36
cmp dword [ebp - 0x50], 0x10
jmp 0x436e9a
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004080a8
add esp, 8
mov edi, eax
push 0x1f
push str.Failed_to_set_value_with_error
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402a36
push edi
lea eax, [ebp - 0x2c]
push eax
push esi
mov byte [ebp - 4], 6
call fcn.00407cd9
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x436e6c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x436e8a
mov edx, dword [ebp - 0x48]
push edx
call fcn.0053ed60
add esp, 4
cmp dword [ebp - 0x50], edi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x436ea8
mov eax, dword [ebp - 0x64]
push eax
call fcn.0053ed60
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 0xc