Function at 0x44f160
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d52d1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x65cc38]
cmp eax, dword [ecx + 4]
jle 0x44f1e5
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], 0xffffffff
jne 0x44f1e5
mov byte [ebp - 4], 1
call fcn.00414990
push 0x5d7c10
call fcn.00484084
push 0x65cc38
mov byte [ebp - 4], 0
call fcn.00483be3
add esp, 8
mov ecx, 0x65cc40
call fcn.00412eb0
mov edi, eax
mov ecx, 0x65cc40
lea eax, [ebp - 0x18]
push eax
call fcn.00412f90
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x44f212
push ecx
call ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20219
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
call esi
test eax, eax
je 0x44f297
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44f242
push eax
call ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20119
push 0
push dword [ebp - 0x1c]
push edi
call esi
test eax, eax
je 0x44f297
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44f279
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44f283
push eax
call ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44f2b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x44f283
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.install
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f279
cmp dword [ebp - 0x18], 4
jne 0x44f279
cmp dword [ebp - 0x20], eax
je 0x44f279
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x44f3bb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push 0x635b64
lea ecx, [ebp - 0x14]
call fcn.00411c70
test eax, eax
jne 0x44f334
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jmp 0x44f26f
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov edx, esi
call fcn.00410cd0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
mov eax, edi
setne byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44f36b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
cmp byte [ebp - 0xd], 0
jne 0x44f38e
test edi, edi
jg 0x44f279
mov ecx, dword [esi]
push esi
jmp 0x44f274
test edi, edi
jg 0x44f39a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44f3a4
push eax
call ebx
mov eax, 1
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 0x80004005
call fcn.00405600
int3