Function at 0x403cfb
Capabilities:
Set registry value

Disassembly:
jmp 0x425940
push 0xffffffffffffffff
push 0x7782d3
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x94]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
push 9
push 0x7add5c
lea ecx, [esp + 0x64]
mov dword [esp + 0x8c], ebx
call fcn.00405920
push 0x12
push 0x7add68
lea ecx, [esp + 0x64]
call fcn.004021c6
mov eax, dword [esp + 0x60]
mov ebp, 0x10
cmp dword [esp + 0x74], ebp
jae 0x4259df
lea eax, [esp + 0x60]
lea ecx, [esp + 0x14]
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 0x425ba6
lea edx, [esp + 0x14]
push edx
push 4
push ebx
push 0x7add7c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x425aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004083af
add esp, 8
mov edi, eax
push 0x27
push str.Failed_to_open_software_key_with_error
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 1
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00405920
push edi
lea ecx, [esp + 0x20]
push ecx
push esi
mov byte [esp + 0x90], 2
call fcn.00402fd1
add esp, 0xc
cmp dword [esp + 0x34], ebp
jb 0x425a86
mov edx, dword [esp + 0x20]
push edx
call fcn.00564155
add esp, 4
mov edi, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x58], ebp
jb 0x425aaa
mov eax, dword [esp + 0x44]
push eax
call fcn.00564155
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x74], ebp
jb 0x425cbb
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x425cb3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push 0x7addb0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x425b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004083af
add esp, 8
mov edi, eax
push str.Failed_to_create_software_key_with_error
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 3
call fcn.004062df
push edi
push eax
push esi
mov byte [esp + 0x90], 4
call fcn.00402fd1
add esp, 0xc
cmp dword [esp + 0x58], ebp
jb 0x425b39
mov edx, dword [esp + 0x44]
push edx
call fcn.00564155
add esp, 4
mov edi, 0xf
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], ebp
jb 0x425b5d
mov eax, dword [esp + 0x20]
push eax
call fcn.00564155
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x74], ebp
jb 0x425cbb
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x425cb3
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov eax, dword [esp + 0x3c]
push eax
call ebx
mov ecx, dword [esp + 0x38]
push edi
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.00403cfb
jmp 0x425ca8
mov ecx, dword [edi + 0x14]
cmp dword [edi + 0x18], ebp
jb 0x425bb3
mov edi, dword [edi + 4]
jmp 0x425bb6
add edi, 4
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x18], ebp
jb 0x425bc4
mov eax, dword [eax + 4]
jmp 0x425bc7
add eax, 4
push ecx
push edi
push 1
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x425c12
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x7ab8da
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405920
jmp 0x425ca8
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004083af
add esp, 8
mov edi, eax
push 0x1f
push str.Failed_to_set_value_with_error
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 5
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00405920
push edi
lea edx, [esp + 0x20]
push edx
push esi
mov byte [esp + 0x90], 6
call fcn.00402fd1
add esp, 0xc
cmp dword [esp + 0x34], ebp
jb 0x425c78
mov eax, dword [esp + 0x20]
push eax
call fcn.00564155
add esp, 4
mov edi, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x58], ebp
jb 0x425c9c
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00564155
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x74], ebp
jb 0x425cbb
mov edx, dword [esp + 0x60]
push edx
call fcn.00564155
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00564b24
add esp, 0x74
ret 0xc