Function at 0x5c4e50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x81bf08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.00404c40
mov edi, str.RegCreateKeyEx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.RegCreateKeyEx
lea ecx, [esp + 0x50]
call fcn.004030a0
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x90], esi
cmp eax, esi
jne 0x5c4eb3
mov eax, 0x8522f4
lea ecx, [esp + 0x14]
push esi
push ecx
push esi
push 2
push esi
push 0x9511f8
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x5c4eeb
lea ecx, [esp + 0x68]
call fcn.005c5790
lea edx, [esp + 0x68]
push 0x8bfd90
push edx
call fcn.007ac5c6
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x94], 0xffffffff
call fcn.00404c40
mov eax, dword [esp + 0x14]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00690530
push esi
mov dword [esp + 0xa0], 1
call fcn.007ae798
add esp, 0x10
mov dword [ebx + 0x40], eax
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.00404c40
mov edi, str.RegSetValueEx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.00404a50
test al, al
je 0x5c4f8a
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
mov esi, str.RegSetValueEx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.004049b0
xor esi, esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push esi
push esi
push ecx
mov byte [esp + 0xa8], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
je 0x5c4fc4
lea ecx, [esp + 0x68]
call fcn.005c5790
lea edx, [esp + 0x68]
push 0x8bfd90
push edx
call fcn.007ac5c6
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 1
call fcn.00404c40
mov eax, dword [ebx + 0x40]
push 8
push 0x10
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.005c5710
add esp, 0x10
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 3
mov byte [esp + 0x3c], dl
call fcn.00404c40
mov edi, str.RegSetValueEx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.00404a50
test al, al
je 0x5c504c
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov eax, ecx
mov esi, str.RegSetValueEx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.004049b0
xor esi, esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x90], 4
cmp eax, esi
jne 0x5c5061
mov eax, 0x8522f4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
inc ecx
push ecx
push eax
push 1
push esi
push str.RuntimeVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
je 0x5c50dc
lea eax, [esp + 0x13]
lea ecx, [esp + 0x58]
push eax
push str.Registry_I_O_error
call fcn.0042b7f0
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 5
push ecx
push 6
lea ecx, [esp + 0x70]
call fcn.0040f6a0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x94], 7
call fcn.00404c40
lea edx, [esp + 0x68]
push 0x8bfd90
push edx
mov dword [esp + 0x70], 0x869d74
mov byte [esp + 0x98], 4
call fcn.007ac5c6
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 3
call fcn.00404c40
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x5c510e
mov cl, byte [eax - 1]
dec eax
test cl, cl
je 0x5c5105
dec cl
mov byte [eax], cl
jmp 0x5c510e
push eax
call fcn.007d7349
add esp, 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], esi
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.005c5740
mov ecx, dword [esp + 0x8c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret