Function at 0x45c5c0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x44
mov eax, dword [0x5f72d8]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push ebx
xor ebx, ebx
push edi
push str.Advapi32.dll
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], 1
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45c810
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x587378
push edi
call esi
push 0x587370
push edi
mov ebp, eax
call esi
push 0x587360
push edi
mov dword [esp + 0x28], eax
call esi
push 0x587350
push edi
mov dword [esp + 0x24], eax
call esi
push 0x587330
push edi
mov dword [esp + 0x34], eax
call esi
push 0x587314
push edi
mov dword [esp + 0x2c], eax
call esi
push str.AddAce
push edi
mov dword [esp + 0x3c], eax
call esi
mov dword [esp + 0x38], eax
cmp ebp, ebx
je 0x45c80e
cmp dword [esp + 0x20], ebx
je 0x45c80e
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x45c80e
cmp dword [esp + 0x2c], ebx
je 0x45c80e
cmp dword [esp + 0x24], ebx
je 0x45c80e
cmp dword [esp + 0x34], ebx
je 0x45c80e
cmp eax, ebx
je 0x45c80e
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea edx, [esp + 0x70]
push edx
call ebp
test eax, eax
je 0x45c80e
mov eax, dword [esp + 0x10]
push eax
call esi
mov ebp, eax
add ebp, 0xc
push ebp
call fcn.0054996d
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x45c80e
mov byte [esi], bl
mov word [esi + 2], bp
mov byte [esi + 1], bl
mov dword [esi + 4], 0x1f0001
mov ecx, dword [esp + 0x10]
push ecx
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
push edx
lea eax, [esi + 8]
push eax
call fcn.0055bea0
add ebp, 8
push ebp
mov dword [esp + 0x2c], ebp
call fcn.0054996d
mov ebp, eax
add esp, 0x10
cmp ebp, ebx
je 0x45c7e7
mov ecx, dword [esp + 0x1c]
push 2
push ecx
push ebp
call dword [esp + 0x38]
test eax, eax
je 0x45c7e7
movzx edx, word [esi + 2]
push edx
push esi
push 0xffffffffffffffff
push 2
push ebp
call dword [esp + 0x4c]
test eax, eax
je 0x45c7e7
push 0x200
call fcn.0054996d
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x45c7e7
push 1
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x45c7e7
mov eax, dword [esp + 0x18]
push ebx
push ebp
push 1
push eax
call dword [esp + 0x44]
test eax, eax
je 0x45c7e7
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
push edx
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], ebx
jne 0x45c7e7
mov edx, dword [esp + 0x30]
push edx
push ebx
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esp + 0x14], eax
push esi
call fcn.00549978
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x45c801
push eax
call fcn.00549978
add esp, 4
cmp ebp, ebx
je 0x45c80e
push ebp
call fcn.00549978
add esp, 4
pop esi
pop ebp
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x45c81d
push eax
call dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
je 0x45c833
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
xor ecx, esp
call fcn.0055a90d
add esp, 0x44
ret 8