Function at 0x4b59f0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3ece
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
call fcn.004291f0
test eax, eax
je 0x4b5da2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [0x60e634]
mov dword [ebp - 4], 2
push 0x80000001
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4b5b4e
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5b3734
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4b5aaf
cmp eax, 2
jne 0x4b5b44
lea ecx, [ebp - 0x10]
call fcn.00429bc0
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4b5dac
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4b5ae5
push edx
lea ecx, [ebp - 0x10]
call fcn.00429e50
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5b3734
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4b5b3e
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b5b29
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b5dac
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4b5dac
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b5b4e
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [eax - 0xc], 0
jne 0x4b5cc5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [0x60e634]
push 0x80000001
call esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4b5c51
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5b3734
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4b5bb8
cmp eax, 2
jne 0x4b5c47
lea ecx, [ebp - 0x10]
call fcn.00429bc0
mov ecx, dword [ebp - 0x18]
shr ecx, 1
add ecx, 1
js 0x4b5dac
mov esi, dword [ebp - 0x10]
mov edx, 1
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x4b5bee
push ecx
lea ecx, [ebp - 0x10]
call fcn.00429e50
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5b3734
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4b5c47
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b5c32
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b5dac
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4b5dac
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b5c51
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [eax - 0xc], 0
jne 0x4b5cc5
mov byte [ebp - 4], 3
call fcn.004291f0
test eax, eax
je 0x4b5da2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b5c8b
push eax
call ebx
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b5d6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00429ef0
push str..exe
push dword [eax]
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x4b5cf7
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b5cf7
xor bl, bl
jmp 0x4b5cf9
mov bl, 1
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
mov dword [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b5d1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4b5d7f
mov byte [ebp - 4], 5
call fcn.004291f0
test eax, eax
je 0x4b5da2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b5d4c
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4b5d6b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
call fcn.00448f40
lea eax, [ebp - 0x10]
push eax
call fcn.00448f40
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00429b20
add esp, 0xc
jmp 0x4b5d35
push 0x80004005
call fcn.00429b00
push 0x80070057
call fcn.00429b00
int3