Function at 0x5b1fe0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00403cbf
movzx eax, al
test eax, eax
je 0x5b2006
xor al, al
jmp 0x5b2335
mov dword [ebp - 0x28], 0
call fcn.005b7650
cmp eax, 0x40
jne 0x5b2020
mov dword [ebp - 0x44], 0x2011f
jmp 0x5b2027
mov dword [ebp - 0x44], 0x2001f
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 0
push 0x5f88b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x5b2333
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
push 0x5f8858
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x5b2269
mov eax, dword [ebp - 0x20]
push eax
call fcn.0056728d
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x5b2264
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x5f8958
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5b2251
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
shr ecx, 1
cmp dword [ebp - 0x38], ecx
jae 0x5b215c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
lea ecx, [eax + edx*2]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040921d
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00410810
movzx edx, al
test edx, edx
je 0x5b2127
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 0x1c]
call fcn.00403fae
jmp 0x5b215c
lea ecx, [ebp - 0x1c]
call fcn.00403cbf
movzx eax, al
test eax, eax
je 0x5b2140
lea ecx, [ebp - 0x1c]
call fcn.00403fae
jmp 0x5b215c
lea ecx, [ebp - 0x1c]
call fcn.00403d1a
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x1c]
call fcn.00403fae
jmp 0x5b20e3
cmp dword [ebp - 0x48], 0
jne 0x5b2251
mov ecx, dword [ebp + 8]
call fcn.00403d1a
mov ecx, dword [ebp - 0x20]
add ecx, 1
shr ecx, 1
lea edx, [eax + ecx + 1]
mov dword [ebp - 0x3c], edx
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00542041
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00548bf0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00403d1a
add eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.00403f32
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0056761a
add esp, 0x10
mov edx, dword [ebp - 0x20]
add edx, 1
shr edx, 1
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403d1a
add eax, 1
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403d1a
mov edx, dword [ebp - 0x2c]
lea eax, [edx + eax*2 + 2]
push eax
call fcn.0056761a
add esp, 0x10
mov ecx, dword [ebp + 8]
call fcn.00403d1a
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 7
push 0
push 0x5f8884
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.0054204a
add esp, 4
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00553d2a
add esp, 4
mov dword [ebp - 0x24], 0
jmp 0x5b2322
cmp dword [ebp - 0x40], 2
jne 0x5b2322
mov ecx, dword [ebp + 8]
call fcn.00403d1a
add eax, 2
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00542041
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00548bf0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00403d1a
add eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.00403f32
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0056761a
add esp, 0x10
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov word [ecx + eax*2 - 2], dx
mov edx, dword [ebp - 0x34]
shl edx, 1
push edx
mov eax, dword [ebp - 0x30]
push eax
push 7
push 0
push 0x5f898c
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.0054204a
add esp, 4
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00542347
mov esp, ebp
pop ebp
ret