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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e799
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4ac3ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x14]
push eax
push dword [0x60264c]
mov dword [ebp - 4], 1
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 0x4ac12c
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5ac698
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4ac091
cmp eax, 2
jne 0x4ac122
lea ecx, [ebp - 0x10]
call fcn.00429490
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4ac3f9
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 0x4ac0c7
push edx
lea ecx, [ebp - 0x10]
call fcn.004296d0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5ac698
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4ac11c
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00555593
mov edx, eax
add esp, 8
test edx, edx
js 0x4ac3f9
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4ac3f9
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ac12c
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [eax - 0xc], 0
jne 0x4ac22e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [0x60264c]
push 0x80000001
call esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4ac224
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5ac698
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4ac18f
cmp eax, 2
jne 0x4ac21a
lea ecx, [ebp - 0x10]
call fcn.00429490
mov ecx, dword [ebp - 0x18]
shr ecx, 1
add ecx, 1
js 0x4ac3f9
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 0x4ac1c5
push ecx
lea ecx, [ebp - 0x10]
call fcn.004296d0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5ac698
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4ac21a
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00555593
mov edx, eax
add esp, 8
test edx, edx
js 0x4ac3f9
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4ac3f9
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ac224
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov esi, dword [eax - 0xc]
test esi, esi
jne 0x4ac29c
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4ac3ef
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ac25b
push eax
call ebx
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ac3b8
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
cmp esi, 4
jg 0x4ac2b2
add eax, 0xfffffff0
push eax
call fcn.004293f0
add esp, 4
lea esi, [eax + 0x10]
jmp 0x4ac321
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4ac2c4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
test edx, edx
jne 0x4ac2d2
call fcn.00428a90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, eax
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff8
lea edi, [edi + esi*2]
test edx, edx
je 0x4ac3ef
test edi, edi
je 0x4ac3f9
mov eax, dword [edx]
mov ecx, edx
push 2
push 4
call dword [eax]
test eax, eax
je 0x4ac403
cmp dword [eax + 8], 4
lea esi, [eax + 0x10]
jl 0x4ac3f9
mov dword [esi - 0xc], 4
xor eax, eax
mov word [esi + 8], ax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
push str..exe
push esi
call fcn.00555852
add esp, 8
test eax, eax
jne 0x4ac344
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ac344
xor bl, bl
jmp 0x4ac346
mov bl, 1
lea edx, [esi - 0x10]
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ac367
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4ac3cc
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4ac3ef
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ac392
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
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4ac3b8
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.004471f0
lea eax, [ebp - 0x10]
push eax
call fcn.004471f0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004293f0
add esp, 0xc
jmp 0x4ac37b
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
call fcn.00429970
int3