Function at 0x4d76b0
Capabilities:
Access peb ldr_data
Check if file exists
Delete file
Delete registry value
Get file attributes
Query or enumerate registry value
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x60ae50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x24]
push str.Software_
lea ecx, [esi + 0x7c]
push eax
mov dword [esp + 0x20], 1
call fcn.0040eb30
push 0x63dab8
push eax
lea ecx, [esp + 0x30]
xor ebx, ebx
push ecx
mov dword [esp + 0x44], ebx
call fcn.00401be0
add esi, 0x24
push esi
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x50], 1
call fcn.00404940
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d7744
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d776c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
push reloc.oleaut32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
mov edi, dword [sym.imp.advapi32.dll_RegDeleteValueA]
mov ebp, dword [sym.imp.advapi32.dll_RegCloseKey]
jne 0x4d77ca
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push 0x6540f8
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d77ca
mov ecx, dword [esp + 0x14]
push 0x6540f8
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call ebp
cmp esi, ebx
je 0x4d77ca
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
push SysReAllocStringLen
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x4d7818
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push 0x6540f8
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d7818
mov eax, dword [esp + 0x14]
push 0x6540f8
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call ebp
cmp esi, ebx
je 0x4d7818
mov dword [esp + 0x18], ebx
mov edx, dword [0x6b428c]
mov eax, dword [edx + 0xa0]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4d7873
and eax, 0xfffffffc
push eax
mov eax, dword [0x6b428c]
mov ecx, dword [eax + 0xa0]
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov edx, dword [0x6b428c]
mov eax, dword [edx + 0xa0]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [0x6b428c]
mov eax, dword [ecx + 0xa0]
push ebx
push eax
call fcn.005a0abb
add esp, 8
test eax, eax
je 0x4d78d9
cmp dword [esp + 0x18], ebx
je 0x4d78d9
mov edx, dword [0x6b428c]
mov eax, dword [edx + 0xe0]
push eax
call fcn.005a01b3
mov eax, dword [0x6b428c]
mov ecx, dword [eax + 0xe8]
push ecx
mov dword [eax + 0xe0], ebx
mov dword [eax + 0xe4], ebx
call fcn.005a01b3
mov eax, dword [0x6b428c]
mov dword [eax + 0xe8], ebx
mov dword [eax + 0xec], ebx
mov dword [eax + 0xf0], ebx
mov dword [eax + 0xf4], ebx
mov dword [eax + 0xf8], ebx
mov dword [eax + 0x100], ebx
add esp, 8
mov ebx, 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d78f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret