Function at 0x4d2380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542dc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x54]
xor esi, esi
cmp eax, esi
jne 0x4d23ba
xor al, al
jmp 0x4d2690
mov al, byte [edi + 0x549]
test al, al
je 0x4d23fe
mov al, byte [edi + 0x54a]
test al, al
je 0x4d23d5
mov al, 1
jmp 0x4d2690
push 1
mov ecx, edi
call fcn.004cb890
push esi
push 1
lea ecx, [edi + 0x568]
mov byte [edi + 0x598], 1
call fcn.00479660
neg eax
sbb eax, eax
neg eax
jmp 0x4d2690
lea eax, [edi + 0x40]
push eax
lea ecx, [ebp - 0x6c]
push str.SOFTWARE_
push ecx
call fcn.00441360
push eax
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 4], esi
call fcn.00481160
add esp, 0x14
cmp dword [ebp - 0x54], 0x10
jb 0x4d2432
mov eax, dword [ebp - 0x68]
push eax
call fcn.00527b8e
add esp, 4
push ebx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
mov ebx, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 3
mov byte [ebp - 0x14], 0x5c
call fcn.004775d0
mov esi, eax
cmp esi, 0xffffffff
je 0x4d251f
push esi
push 0
lea edx, [ebp - 0x88]
push edx
mov ecx, ebx
call fcn.00440930
push eax
lea eax, [ebp - 0x6c]
push 0x55734c
push eax
mov byte [ebp - 4], 4
call fcn.00441360
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00416d70
cmp dword [ebp - 0x54], 0x10
jb 0x4d24b0
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x70], 0x10
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov byte [ebp - 4], 3
jb 0x4d24db
mov edx, dword [ebp - 0x84]
push edx
call fcn.00527b8e
add esp, 4
push 0xffffffffffffffff
inc esi
push esi
lea eax, [ebp - 0x88]
push eax
mov ecx, ebx
call fcn.00440930
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0041ad80
mov eax, dword [ebp - 0x70]
mov esi, 0x10
cmp eax, esi
mov byte [ebp - 4], 3
jb 0x4d2531
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00527b8e
add esp, 4
jmp 0x4d2531
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.0041ad80
mov esi, 0x10
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x4d253c
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x18]
push edx
push 0x20006
xor ebx, ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4d25f9
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x4d2567
lea eax, [ebp - 0x4c]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push 0xf003f
push ebx
push 0x5580e0
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x4d25f9
mov al, byte [edi + 0x548]
test al, al
je 0x4d25c2
mov ecx, edi
call fcn.004cb7f0
push 1
add edi, 0x568
push ebx
mov ecx, edi
call fcn.00487b00
push 5
push 0xc
mov ecx, edi
call fcn.00487b00
push 1
push ebx
mov ecx, edi
call fcn.00487b00
cmp dword [ebp - 0x1c], esi
jb 0x4d25d3
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
jb 0x4d25f2
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00527b8e
add esp, 4
xor al, al
jmp 0x4d268f
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x4d2604
lea eax, [ebp - 0x30]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [edi + 0x548]
test al, al
je 0x4d265d
mov ecx, edi
call fcn.004cb7f0
push 1
add edi, 0x568
push ebx
mov ecx, edi
call fcn.00487b00
push 5
push 0xc
mov ecx, edi
call fcn.00487b00
push 1
push 1
mov ecx, edi
call fcn.00487b00
cmp dword [ebp - 0x1c], esi
jb 0x4d266e
mov edx, dword [ebp - 0x30]
push edx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
jb 0x4d268d
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00527b8e
add esp, 4
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00528d83
mov esp, ebp
pop ebp
ret 0x10