Function at 0x45d9f0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x44
mov eax, dword [0x6015a8]
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 0x45dc40
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x590390
push edi
call esi
push 0x590388
push edi
mov ebp, eax
call esi
push 0x590378
push edi
mov dword [esp + 0x28], eax
call esi
push 0x590368
push edi
mov dword [esp + 0x24], eax
call esi
push 0x590348
push edi
mov dword [esp + 0x34], eax
call esi
push 0x59032c
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 0x45dc3e
cmp dword [esp + 0x20], ebx
je 0x45dc3e
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x45dc3e
cmp dword [esp + 0x2c], ebx
je 0x45dc3e
cmp dword [esp + 0x24], ebx
je 0x45dc3e
cmp dword [esp + 0x34], ebx
je 0x45dc3e
cmp eax, ebx
je 0x45dc3e
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 0x45dc3e
mov eax, dword [esp + 0x10]
push eax
call esi
mov ebp, eax
add ebp, 0xc
push ebp
call fcn.00551daf
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x45dc3e
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.005642c0
add ebp, 8
push ebp
mov dword [esp + 0x2c], ebp
call fcn.00551daf
mov ebp, eax
add esp, 0x10
cmp ebp, ebx
je 0x45dc17
mov ecx, dword [esp + 0x1c]
push 2
push ecx
push ebp
call dword [esp + 0x38]
test eax, eax
je 0x45dc17
movzx edx, word [esi + 2]
push edx
push esi
push 0xffffffffffffffff
push 2
push ebp
call dword [esp + 0x4c]
test eax, eax
je 0x45dc17
push 0x200
call fcn.00551daf
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x45dc17
push 1
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x45dc17
mov eax, dword [esp + 0x18]
push ebx
push ebp
push 1
push eax
call dword [esp + 0x44]
test eax, eax
je 0x45dc17
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 0x45dc17
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.00551dba
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x45dc31
push eax
call fcn.00551dba
add esp, 4
cmp ebp, ebx
je 0x45dc3e
push ebp
call fcn.00551dba
add esp, 4
pop esi
pop ebp
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x45dc4d
push eax
call dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
je 0x45dc63
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.00562d51
add esp, 0x44
ret 8