Function at 0x42e350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440ffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x1d], 0
cmp dword [ebp + 0x14], 0
je 0x42e471
cmp dword [ebp + 0x18], 0
je 0x42e471
cmp dword [ebp + 0x1c], 0
je 0x42e471
push 4
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0
je 0x42e3cd
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0040a9b0
mov dword [ebp - 0x58], eax
jmp 0x42e3d4
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
push 4
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x42e412
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0040a9b0
mov dword [ebp - 0x5c], eax
jmp 0x42e419
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
push 4
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3c], 0
je 0x42e457
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.0040a9b0
mov dword [ebp - 0x60], eax
jmp 0x42e45e
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0
je 0x42e5c8
cmp dword [ebp - 0x24], 0
je 0x42e5c8
cmp dword [ebp - 0x18], 0
je 0x42e5c8
movzx eax, byte [0x483258]
test eax, eax
je 0x42e4ab
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0042d220
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x42e4bf
mov ecx, dword [ebp - 0x1c]
call fcn.0040aa10
push eax
call fcn.0042d060
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42e550
movzx edx, byte [0x483258]
test edx, edx
je 0x42e502
mov eax, dword [ebp + 0x1c]
push eax
call fcn.004361fa
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
jmp 0x42e53c
mov ecx, dword [ebp - 0x18]
call fcn.0040aa10
push eax
call fcn.00435fa0
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040aa10
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x24]
call fcn.0040aa10
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42e546
mov byte [ebp - 0x1d], 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x42e571
push 1
mov ecx, dword [ebp - 0x40]
call fcn.0042e640
mov dword [ebp - 0x64], eax
jmp 0x42e578
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x42e599
push 1
mov ecx, dword [ebp - 0x48]
call fcn.0042e640
mov dword [ebp - 0x68], eax
jmp 0x42e5a0
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
je 0x42e5c1
push 1
mov ecx, dword [ebp - 0x50]
call fcn.0042e640
mov dword [ebp - 0x6c], eax
jmp 0x42e5c8
mov dword [ebp - 0x6c], 0
mov al, byte [ebp - 0x1d]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
call dword [edx + 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret