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

Disassembly:
push 0xffffffffffffffff
push 0x4eb3b8
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.00449130
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 0x47c020
cmp ebp, ebx
je 0x47bff1
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.00449190
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.004b3b10
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 0x47c142
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 0x47c142
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 0x47c142
mov al, byte [esp + 0x78]
test al, al
jle 0x47c142
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
movzx ecx, word [0x51c734]
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 0x47c142
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.0047bd70
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x47c151
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 0x47c162
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x47c16d
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x47c178
push eax
call esi
cmp ebp, ebx
je 0x47c18e
mov edx, dword [0x51d3c8]
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