Function at 0x4f0aa0
Capabilities:
Get common file path
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6811b5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x906648]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x15], 0
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x10], eax
mov dword [ebx + 0xc], 0
cmp dword [ebx], eax
je 0x4f132f
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f132f
cmp eax, 0x8000
ja 0x4f132f
inc eax
mov edi, 0x105
cmp eax, edi
cmova edi, eax
mov dword [ebp - 0x24], edi
lea eax, [edi + edi]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x4f0b38
mov eax, 0xe
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 edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebx + 4], 2
jbe 0x4f0c32
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
cmp word [eax], 0x5c
je 0x4f0c32
cmp word [eax + 2], 0x3a
je 0x4f0c32
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20219
push 0
push str.SoftwareMcAfeeSystemCore
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
cmove esi, dword [ebp - 0x1c]
test esi, esi
je 0x4f0c05
lea eax, [edi + edi]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x4c]
push eax
push 0
push str.szInstallDir32
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4f0bf8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4f0bf8
push 0x6ce50c
push edi
push eax
call fcn.004f1650
test eax, eax
js 0x4f0be7
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4f0bf8
push eax
push edi
push dword [ebp - 0x20]
call fcn.004f1650
test eax, eax
jns 0x4f0bf8
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f0c05
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x4f0c83
push dword [ebx + 0xc]
call fcn.0063e429
add esp, 4
mov dword [ebx + 0xc], 0
xor eax, eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
mov dword [ebp - 0x10], 2
setne byte [ebp + 0xb]
jmp 0x4f0c83
mov esi, dword [ebx]
mov ecx, dword [ebx + 0xc]
test edi, edi
je 0x4f0c7f
cmp edi, 0x7fffffff
ja 0x4f0c7a
mov edx, edi
mov edi, bind
sub edi, edx
sub esi, ecx
nop
lea eax, [edi + edx]
test eax, eax
je 0x4f0c6b
movzx eax, word [esi + ecx]
test ax, ax
je 0x4f0c6b
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4f0c50
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x4f0c7f
xor eax, eax
mov word [ecx], ax
mov byte [ebp - 0x15], 1
mov eax, dword [ebx + 8]
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], eax
cmp byte [ebp + 0xb], al
je 0x4f0e0e
push str.NCPrivateLoadAndValidateMPTDll:_Looking_in_current_directory_n
call ecx
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
cmp dword [ebx], edi
je 0x4f0dfa
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f0dfa
cmp eax, 0x8000
ja 0x4f0dfa
xor eax, eax
mov dword [ebx + 0xc], edi
push eax
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4f0d56
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063c980
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
je 0x4f0d4d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
jne 0x4f0d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 0x10], eax
call fcn.0063c9b0
add esp, 4
xor edi, edi
mov dword [ebp + 8], edi
jmp 0x4f0d5f
mov dword [ebp - 0x10], 0xe
jmp 0x4f0d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
xor ecx, ecx
test edi, edi
je 0x4f0ddb
mov eax, dword [ebx + 4]
mov edi, 0xe
add eax, 2
mov dword [ebp - 0x10], edi
add eax, ecx
mov dword [ebp - 0x14], eax
add eax, eax
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4f0dde
push dword [ebx]
push dword [ebp + 8]
push str._ls_ls
push dword [ebp - 0x14]
push eax
call fcn.004f1830
add esp, 0x14
test eax, eax
js 0x4f0dd1
push dword [ebx + 0xc]
lea ecx, [ebp - 0x9c]
call fcn.004f0560
push 0
lea ecx, [ebp - 0x9c]
call fcn.004f18a0
mov edi, eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x10], edi
call fcn.004f05e0
jmp 0x4f0dde
mov edi, 0x6f
mov dword [ebp - 0x10], edi
jmp 0x4f0dde
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
test eax, eax
je 0x4f0e06
push eax
call fcn.0063c9b0
mov ecx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 4
jmp 0x4f0e49
mov edi, 0x57
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], edi
mov ecx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4f0e49
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f0e46
push eax
lea ecx, [ebp - 0x9c]
call fcn.004f0560
push 0
lea ecx, [ebp - 0x9c]
call fcn.004f18a0
mov edi, eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x10], edi
call fcn.004f05e0
mov ecx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4f0e49
mov edi, dword [ebp - 0x10]
cmp edi, 2
je 0x4f0e5a
cmp edi, 0x80092003
jne 0x4f1054
cmp byte [ebp - 0x15], 0
jne 0x4f1054
push str.NCPrivateLoadAndValidateMPTDll:_Looking_in_EXE_directory_n
call ecx
mov dword [ebp + 8], 0
mov edi, 0x104
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063c980
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4f0ef9
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x14], eax
cmp edi, eax
jne 0x4f0ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4f0ecc
push esi
add edi, edi
call fcn.0063c9b0
add esp, 4
mov dword [ebp - 0x40], 0
jmp 0x4f0e77
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4f0edd
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
xor eax, eax
jmp 0x4f0f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp + 8], eax
call fcn.0063c9b0
mov eax, dword [ebp + 8]
add esp, 4
xor esi, esi
mov dword [ebp - 0x40], esi
jmp 0x4f0f01
mov eax, 0xe
mov dword [ebp + 8], eax
mov edi, eax
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4f0fb9
push 0x5c
push esi
call fcn.0063e3b1
mov edi, dword [ebp + 8]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x10], edi
test eax, eax
je 0x4f0fbb
sub eax, esi
mov edx, 2
sar eax, 1
mov dword [ebp - 0x28], eax
inc eax
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063c980
mov ecx, eax
mov dword [ebp - 0x10], edi
add esp, 4
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x4f0fb9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4f0fa1
cmp eax, 0x7fffffff
ja 0x4f0f93
mov edi, dword [ebp - 0x28]
cmp edi, 0x7ffffffe
jbe 0x4f0f77
xor eax, eax
mov word [ecx], ax
jmp 0x4f0fa1
push edi
push esi
push 0
push eax
push ecx
call fcn.004f0190
test eax, eax
js 0x4f0f9e
mov ecx, edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], edi
jmp 0x4f0fbb
test eax, eax
je 0x4f0fa1
xor eax, eax
mov word [ecx], ax
jmp 0x4f0fa1
mov ecx, dword [ebp - 0x38]
mov edi, 0x54f
push ecx
mov dword [ebp - 0x10], edi
call fcn.0063c9b0
add esp, 4
mov dword [ebp - 0x38], 0
xor ecx, ecx
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4f1054
mov eax, dword [ebx + 4]
add eax, 2
add ecx, eax
mov eax, dword [ebx + 0xc]
mov dword [ebp + 8], ecx
test eax, eax
je 0x4f0ff2
mov edi, dword [ebp - 0x24]
cmp edi, ecx
jae 0x4f1006
push eax
call fcn.0063e429
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ebx + 0xc], 0
lea eax, [ecx + ecx]
mov edi, ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, dword [ebp - 0x38]
add esp, 4
mov dword [ebx + 0xc], eax
mov dword [ebp - 0x10], 0xe
test eax, eax
je 0x4f1087
push dword [ebx]
push edx
push str._ls_ls
push edi
push dword [ebx + 0xc]
call fcn.004f1830
add esp, 0x14
test eax, eax
js 0x4f1076
push dword [ebx + 0xc]
lea ecx, [ebp - 0x9c]
call fcn.004f0560
push 0
lea ecx, [ebp - 0x9c]
call fcn.004f18a0
mov edi, eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x10], edi
call fcn.004f05e0
cmp edi, 0x800b010e
jg 0x4f107f
je 0x4f12f2
cmp edi, 0x80092026
je 0x4f12f2
cmp edi, 0x800b0101
jmp 0x4f1081
mov dword [ebp - 0x10], 0x6f
jmp 0x4f1087
test edi, edi
je 0x4f12f2
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4f1096
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
test esi, esi
jne 0x4f1107
mov edi, 0x104
nop
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063c980
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4f12a7
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x1c], eax
cmp edi, eax
jne 0x4f10fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4f10f9
push esi
add edi, edi
call fcn.0063c9b0
add esp, 4
mov dword [ebp - 0x40], 0
jmp 0x4f10a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f11a5
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4f12a7
mov ecx, 0x8000
cmp word [eax], 0
je 0x4f1125
add eax, 2
sub ecx, 1
jne 0x4f1117
mov eax, 0x8000
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp + 8], edx
test ecx, ecx
je 0x4f12a7
test esi, esi
jne 0x4f11e1
mov edi, 0x104
nop dword [eax]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063c980
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4f11de
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x14], eax
cmp edi, eax
jne 0x4f11be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4f11bb
push esi
add edi, edi
call fcn.0063c9b0
add esp, 4
mov dword [ebp - 0x40], 0
jmp 0x4f1150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.0063c9b0
add esp, 4
xor esi, esi
jmp 0x4f12a7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4f11ca
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x4f11e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.0063c9b0
add esp, 4
xor esi, esi
mov dword [ebp - 0x40], esi
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
add edx, 0x200
add eax, edx
mov dword [ebp - 0x14], eax
add eax, eax
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4f12a7
test esi, esi
jne 0x4f127a
mov edi, 0x104
nop
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063c980
mov esi, eax
add esp, 4
test esi, esi
je 0x4f127a
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp + 8], eax
cmp edi, eax
jne 0x4f1265
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4f1262
push esi
add edi, edi
call fcn.0063c9b0
add esp, 4
mov dword [ebp - 0x40], 0
jmp 0x4f1210
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4f127a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.0063c9b0
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
push esi
push str.NotComDllGetInterface:__ls_loading__ls__WinVerifyTrust_failed_with__08x_n
push dword [ebp - 0x14]
push edi
call fcn.004f1830
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.0063e429
add esp, 4
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f12be
push eax
call fcn.0063e429
add esp, 4
mov dword [ebx + 0xc], 0
mov edi, dword [ebp - 0x10]
test esi, esi
je 0x4f12ce
push esi
call fcn.0063c9b0
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4f12de
push eax
call fcn.0063c9b0
add esp, 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
mov eax, dword [ebx + 0xc]
xor edi, edi
test eax, eax
je 0x4f1328
push 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x4f12c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0xc]
mov edi, eax
call fcn.0063e429
add esp, 4
mov dword [ebx + 0xc], 0
jmp 0x4f12c1
mov edi, 0x54f
jmp 0x4f12c1
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret