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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e6b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4a11df
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 [0x61b918]
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 0x4a0f1c
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5b0144
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4a0e81
cmp eax, 2
jne 0x4a0f12
lea ecx, [ebp - 0x10]
call fcn.00426010
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4a11e9
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 0x4a0eb7
push edx
lea ecx, [ebp - 0x10]
call fcn.00426250
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5b0144
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4a0f0c
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.0054b2c2
mov edx, eax
add esp, 8
test edx, edx
js 0x4a11e9
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4a11e9
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 0x4a0f1c
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [eax - 0xc], 0
jne 0x4a101e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [0x61b918]
push 0x80000001
call esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4a1014
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5b0144
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4a0f7f
cmp eax, 2
jne 0x4a100a
lea ecx, [ebp - 0x10]
call fcn.00426010
mov ecx, dword [ebp - 0x18]
shr ecx, 1
add ecx, 1
js 0x4a11e9
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 0x4a0fb5
push ecx
lea ecx, [ebp - 0x10]
call fcn.00426250
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5b0144
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4a100a
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.0054b2c2
mov edx, eax
add esp, 8
test edx, edx
js 0x4a11e9
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4a11e9
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 0x4a1014
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov esi, dword [eax - 0xc]
test esi, esi
jne 0x4a108c
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4a11df
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 0x4a104b
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 0x4a11a8
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 0x4a10a2
add eax, 0xfffffff0
push eax
call fcn.00425f70
add esp, 4
lea esi, [eax + 0x10]
jmp 0x4a1111
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4a10b4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
test edx, edx
jne 0x4a10c2
call fcn.00421b80
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 0x4a11df
test edi, edi
je 0x4a11e9
mov eax, dword [edx]
mov ecx, edx
push 2
push 4
call dword [eax]
test eax, eax
je 0x4a11f3
cmp dword [eax + 8], 4
lea esi, [eax + 0x10]
jl 0x4a11e9
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.0054b581
add esp, 8
test eax, eax
jne 0x4a1134
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a1134
xor bl, bl
jmp 0x4a1136
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 0x4a1157
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4a11bc
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4a11df
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 0x4a1182
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 0x4a11a8
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.00443130
lea eax, [ebp - 0x10]
push eax
call fcn.00443130
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00425f70
add esp, 0xc
jmp 0x4a116b
push 0x80004005
call fcn.00425f50
push 0x80070057
call fcn.00425f50
call fcn.004264f0
int3