Function at 0x4c4d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, 2
push edi
mov ecx, ebx
mov edi, 0x515678
mov eax, ebx
lock cmpxchg dword [edi], ecx
cmp eax, ebx
je 0x4c5094
push esi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x4c506f
xor ebx, ebx
lea eax, [ebp - 0x434]
push 0x20a
push ebx
push eax
mov dword [ebp - 0x43c], ebx
call fcn.0048ee50
push 0x20a
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.0048ee50
mov eax, dword [str.sqlite3.dll]
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4f6578]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4f657c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4f6580]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4f6584]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4f6588]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x440]
push eax
push fcn.004c4d60
push 4
mov dword [ebp - 0x440], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x4c4e76
push 0x104
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
mov dword [ebp - 0x43c], ebx
test ebx, ebx
jle 0x4c4e76
cmp word [ebp + ebx*2 - 0x436], 0x5c
je 0x4c4e76
lea eax, [ebx*2 - 2]
cmp eax, 0x20a
jae 0x4c50a9
xor eax, eax
mov word [ebp + ebx*2 - 0x436], ax
dec ebx
mov dword [ebp - 0x43c], ebx
test ebx, ebx
jg 0x4c4e44
dec ebx
cmp ebx, 8
jl 0x4c4f42
xor eax, eax
lea ecx, [ebp + ebx*2 - 0x444]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x444], ecx
jmp 0x4c4ea0
movzx edx, word [eax*2 + str.office6]
movzx ebx, word [ecx]
mov eax, edx
mov esi, ebx
lea ecx, [eax - 0x41]
add eax, 0x20
movzx edi, ax
cmp cx, 0x19
mov eax, edx
lea ecx, [esi - 0x41]
cmova edi, eax
lea eax, [esi + 0x20]
movzx edx, ax
cmp cx, 0x19
mov eax, ebx
cmova edx, eax
mov eax, dword [ebp - 0x438]
cmp dx, di
jne 0x4c4ef9
mov ecx, dword [ebp - 0x444]
inc eax
add ecx, 2
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x444], ecx
cmp eax, 8
jl 0x4c4ea0
cmp eax, 8
jne 0x4c4f42
mov esi, dword [ebp - 0x43c]
lea eax, [ebp - 0x434]
push esi
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0049cc6c
xor eax, eax
mov word [ebp + esi*2 - 0x228], ax
mov eax, 0x104
sub eax, esi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004c5a18
add esp, 0x18
jmp 0x4c5048
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x438], 0x104
push eax
push 0x20019
push 0
push 0x4d91f0
push 0x80000001
mov dword [ebp - 0x43c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c4fb4
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push str.InstallRoot
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x43c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
test eax, eax
jne 0x4c4fd7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x80000002
call fcn.004c50b0
add esp, 0xc
test eax, eax
je 0x4c505a
mov ecx, dword [ebp - 0x438]
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4c505a
cmp word [ebp + ecx*2 - 0x22a], 0x5c
je 0x4c4fff
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x22a], ax
xor eax, eax
mov word [ebp + ecx*2 - 0x228], ax
mov eax, 0x103
sub eax, ecx
push eax
lea eax, [ebp - 0x228]
push str.office6_
push eax
call fcn.004c5a18
mov eax, 0xfb
add esp, 0xc
sub eax, dword [ebp - 0x438]
test eax, eax
jle 0x4c505a
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004c5a18
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x515674], eax
mov eax, 1
mov ecx, 2
mov edx, 0x515678
lock cmpxchg dword [edx], ecx
jmp 0x4c5093
mov ecx, ebx
mov eax, ebx
lock cmpxchg dword [edi], ecx
cmp eax, 2
je 0x4c5093
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
mov ecx, ebx
mov eax, ebx
lock cmpxchg dword [edi], ecx
cmp eax, 2
jne 0x4c5082
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x515674]
xor ecx, ebp
pop edi
pop ebx
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.0048db89
int3