Function at 0x407d07
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x422a7b
call fcn.00419178
sub esp, 0xd8
push ebx
push esi
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.AllocateAndInitializeSid
push edi
call esi
push str.SetEntriesInAclA
push edi
mov dword [ebp - 0x10], eax
call esi
push str.InitializeSecurityDescriptor
push edi
mov dword [ebp - 0x14], eax
call esi
push str.SetSecurityDescriptorDacl
push edi
mov dword [ebp - 0x34], eax
call esi
push str.SetFileSecurityA
push edi
mov dword [ebp - 0x30], eax
call esi
push str.RegSetKeySecurity
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x2c], eax
call esi
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x54], eax
je 0x40805c
cmp dword [ebp - 0x14], ebx
je 0x40805c
cmp dword [ebp - 0x34], ebx
je 0x40805c
cmp dword [ebp - 0x30], ebx
je 0x40805c
cmp dword [ebp - 0x1c], ebx
je 0x40805c
cmp dword [ebp - 0x2c], ebx
je 0x40805c
cmp eax, ebx
je 0x40805c
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], 1
call dword [ebp - 0x10]
test eax, eax
je 0x40805c
push 0x20
lea eax, [ebp - 0xac]
push ebx
push eax
call fcn.00417230
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0xac]
push eax
push edi
mov dword [ebp - 0xac], 0x1fffff
mov dword [ebp - 0xa8], 2
mov dword [ebp - 0xa4], 3
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], 5
mov dword [ebp - 0x10], ebx
call dword [ebp - 0x14]
test eax, eax
jne 0x408056
push 0x14
call fcn.00415e14
pop ecx
push edi
push eax
mov dword [ebp - 0x18], eax
call dword [ebp - 0x34]
test eax, eax
je 0x408044
push ebx
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x18]
call dword [ebp - 0x30]
test eax, eax
je 0x408044
mov eax, dword [0x42ced0]
cmp eax, ebx
jne 0x407e8b
xor esi, esi
jmp 0x407e8d
mov esi, dword [eax]
cmp esi, eax
je 0x407f80
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00405135
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
mov dword [ebp - 4], ebx
jbe 0x407f50
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x407ebe
lea eax, [ebp - 0x4c]
mov al, byte [eax + ecx - 1]
cmp al, 0x5c
je 0x407f1b
cmp al, 0x2f
je 0x407f1b
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00413d40
push eax
mov byte [ebp - 4], 2
call fcn.004136a0
add esp, 0xc
push edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.004017f0
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x407f02
lea eax, [ebp - 0x4c]
push 0x426090
push eax
call fcn.004180f9
cmp eax, ebx
pop ecx
pop ecx
je 0x407f50
push eax
call fcn.00418383
jmp 0x407f4f
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00413a30
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004016a9
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.004017f0
lea eax, [ebp - 0x50]
push eax
call fcn.004136a0
pop ecx
cmp dword [ebp - 0x38], 0x10
mov esi, dword [esi]
mov eax, dword [ebp - 0x4c]
jae 0x407f5e
lea eax, [ebp - 0x4c]
push dword [ebp - 0x18]
push 4
push eax
call dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x50]
call fcn.004017f0
cmp esi, dword [0x42ced0]
jne 0x407e95
mov eax, dword [0x42cedc]
cmp eax, ebx
jne 0x407f8d
xor esi, esi
jmp 0x407f8f
mov esi, dword [eax]
cmp esi, eax
je 0x408044
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00405135
pop ecx
pop ecx
cmp dword [ebp - 0x78], ebx
mov dword [ebp - 4], 3
jbe 0x408026
push ebx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x58], 0xf
call fcn.00401981
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 4
call fcn.00407073
add esp, 0xc
test al, al
je 0x40806d
cmp dword [ebp - 0x58], 0x10
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], ebx
jae 0x407ff7
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40801d
push dword [ebp - 0x18]
push 4
push dword [ebp - 0x14]
call dword [ebp - 0x2c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp - 0x70]
call fcn.004017f0
mov esi, dword [esi]
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x8c]
call fcn.004017f0
cmp esi, dword [0x42cedc]
jne 0x407f97
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
call fcn.00417290
pop ecx
push dword [ebp - 0x28]
call dword [ebp - 0x54]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xe4]
push str.Invalid_Key_
push eax
call fcn.004049f1
push 0x4266a8
push eax
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 5
call fcn.004049a5
push eax
mov byte [ebp - 4], 6
call fcn.00404c39
add esp, 0x1c
push edi
lea ecx, [ebp - 0xc8]
call fcn.004017f0
push edi
lea ecx, [ebp - 0xe4]
call fcn.004017f0
push edi
lea ecx, [ebp - 0x70]
call fcn.004017f0
push edi
lea ecx, [ebp - 0x8c]
call fcn.004017f0
xor al, al
jmp 0x40805e