Function at 0x436c80
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x54
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push ebx
xor ebx, ebx
push ebp
push esi
push edi
push str.Advapi32.dll
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], bl
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], 5
xor edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x40], esi
je 0x436d8c
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4bd5ac
push esi
call ebp
mov edi, eax
cmp edi, ebx
je 0x436f6b
push 0x4bd5a4
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x436f6b
push 0x4bd594
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x436f6b
push 0x4bd584
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x436f6b
push 0x4bd564
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x436f6b
push 0x4bd548
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x436f6b
push str.AddAce
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x436f6b
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x80]
push edx
call edi
test eax, eax
je 0x436f6b
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [esp + 0x80]
push ecx
call edi
test eax, eax
je 0x436f6b
mov edx, dword [esp + 0x10]
push edx
call dword [esp + 0x20]
mov edi, eax
add edi, 0xc
push edi
mov dword [esp + 0x2c], edi
call fcn.00482367
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x436f6b
mov esi, dword [esp + 0x1c]
mov byte [ebp], bl
mov word [ebp + 2], di
mov byte [ebp + 1], bl
mov dword [ebp + 4], 0x1f0001
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00492bf0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
mov edi, eax
add edi, 0xc
push edi
call fcn.00482367
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x436f31
mov byte [esi], bl
mov word [esi + 2], di
mov byte [esi + 1], bl
mov dword [esi + 4], 0x1f0001
mov ecx, dword [esp + 0x14]
push ecx
call dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push eax
push edx
lea eax, [esi + 8]
push eax
call fcn.00492bf0
mov ecx, dword [esp + 0x34]
lea edi, [edi + ecx + 8]
push edi
mov dword [esp + 0x38], edi
call fcn.00482367
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x436f33
mov edx, dword [esp + 0x28]
push 2
push edx
push edi
call dword [esp + 0x40]
test eax, eax
je 0x436f33
movzx eax, word [ebp + 2]
push eax
push ebp
push 0xffffffffffffffff
push 2
push edi
call dword [esp + 0x34]
test eax, eax
je 0x436f33
movzx ecx, word [esi + 2]
push ecx
push esi
push 0xffffffffffffffff
push 2
push edi
call dword [esp + 0x34]
test eax, eax
je 0x436f33
push 0x200
call fcn.00482367
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x436f33
push 1
push eax
call dword [esp + 0x38]
test eax, eax
je 0x436f33
mov edx, dword [esp + 0x18]
push ebx
push edi
push 1
push edx
call dword [esp + 0x3c]
test eax, eax
je 0x436f33
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
push ecx
mov dword [esp + 0x54], eax
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x38], eax
jmp 0x436f33
mov edi, ebx
push ebp
call fcn.00482397
add esp, 4
cmp esi, ebx
je 0x436f49
push esi
call fcn.00482397
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x436f5a
push eax
call fcn.00482397
add esp, 4
cmp edi, ebx
je 0x436f67
push edi
call fcn.00482397
add esp, 4
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x436f78
push eax
call dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x436f85
push eax
call dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
cmp edi, ebx
je 0x436f98
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x436fa3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00490dce
add esp, 0x54
ret 8