Function at 0x4795e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e6f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push str.MACHINE_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
mov ebp, eax
shr ecx, 2
mov esi, str.MACHINE_
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x74]
mov edi, dword [eax]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x6c], ebx
je 0x479680
cmp ebp, ebx
je 0x479651
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + ebx]
shl eax, 1
push ebp
call fcn.00445f60
lea ecx, [esi + esi]
mov ebp, eax
push ecx
lea edx, [ebp + ebx*2]
push edi
push edx
mov dword [esp + 0x2c], ebp
call fcn.004aee50
add esp, 0x10
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x20]
push eax
push ebx
mov dword [esp + 0x60], ecx
push ebx
mov dword [esp + 0x68], ecx
push 4
mov dword [esp + 0x70], ecx
push 4
mov dword [esp + 0x78], ecx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x4797a2
mov esi, dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
push 3
push 2
push 0xf003f
push str.Everyone
lea ecx, [esp + 0x34]
push ecx
call esi
push 3
push 2
push 0xf003f
push str.Administrators
lea edx, [esp + 0x54]
push edx
call esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
push 2
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
jne 0x4797a2
mov eax, dword [esp + 0x10]
push ebx
push eax
push ebx
push ebx
push 4
push 4
push ebp
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x4797a2
mov al, byte [esp + 0x78]
test al, al
jle 0x4797a2
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
movzx ecx, word [0x518dc4]
lea edx, [esp + 0x14]
push edx
or ecx, 0xf003f
push ecx
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4797a2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.004793d0
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4797b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x4797c2
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4797cd
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4797d8
push eax
call esi
cmp ebp, ebx
je 0x4797ee
mov edx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret