Function at 0x450558
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
push str.Advapi32.dll
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
xor esi, esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x450658
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51631c
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4507ff
push 0x516314
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4507ff
push 0x516304
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x4507ff
push 0x5162f4
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x4507ff
push 0x5162d4
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x4507ff
push 0x5162b8
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x4507ff
push str.AddAce
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x4507ff
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x4507ff
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x4507ff
push dword [ebp - 0x18]
call dword [ebp - 0x20]
mov esi, eax
add esi, 0xc
push esi
mov dword [ebp - 0x34], esi
call fcn.004dcd28
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4507ff
mov byte [edi], bl
mov word [edi + 2], si
mov byte [edi + 1], bl
mov dword [edi + 4], 0x1f0001
push dword [ebp - 0x18]
call dword [ebp - 0x20]
push eax
push dword [ebp - 0x18]
lea eax, [edi + 8]
push eax
call fcn.004efcc0
add esp, 0xc
push dword [ebp - 0x14]
call dword [ebp - 0x20]
add eax, 0xc
push eax
mov dword [ebp - 0x40], eax
call fcn.004dcd28
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4507d1
mov ax, word [ebp - 0x40]
mov byte [esi], bl
mov word [esi + 2], ax
mov byte [esi + 1], bl
mov dword [esi + 4], 0x1f0001
push dword [ebp - 0x14]
call dword [ebp - 0x20]
push eax
push dword [ebp - 0x14]
lea eax, [esi + 8]
push eax
call fcn.004efcc0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
lea eax, [eax + ecx + 8]
push eax
mov dword [ebp - 0x34], eax
call fcn.004dcd28
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4507d1
push 2
push dword [ebp - 0x34]
push eax
call dword [ebp - 0x3c]
test eax, eax
je 0x4507d1
movzx eax, word [edi + 2]
push eax
push edi
push 0xffffffffffffffff
push 2
push dword [ebp - 0x1c]
call dword [ebp - 0x2c]
test eax, eax
je 0x4507d1
movzx eax, word [esi + 2]
push eax
push esi
push 0xffffffffffffffff
push 2
push dword [ebp - 0x1c]
call dword [ebp - 0x2c]
test eax, eax
je 0x4507d1
push 0x200
call fcn.004dcd28
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4507d1
push 1
push eax
call dword [ebp - 0x44]
test eax, eax
je 0x4507d1
push ebx
push dword [ebp - 0x1c]
push 1
push dword [ebp - 0x24]
call dword [ebp - 0x38]
test eax, eax
je 0x4507d1
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x24]
push dword [ebp + 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0xc
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push edi
call fcn.004dcd33
pop ecx
cmp esi, ebx
je 0x4507e3
push esi
call fcn.004dcd33
pop ecx
cmp dword [ebp - 0x24], ebx
je 0x4507f1
push dword [ebp - 0x24]
call fcn.004dcd33
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x4507ff
push dword [ebp - 0x1c]
call fcn.004dcd33
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x45080a
push dword [ebp - 0x18]
call dword [ebp - 0x30]
cmp dword [ebp - 0x14], ebx
je 0x450815
push dword [ebp - 0x14]
call dword [ebp - 0x30]
cmp dword [ebp - 0x28], ebx
je 0x450823
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x10], ebx
pop edi
pop esi
pop ebx
je 0x450834
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004edcb6
leave
ret 8