Function at 0x436450
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x50
mov eax, dword [0x4e3e9c]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push ebx
xor ebx, ebx
push ebp
push esi
push edi
push str.Advapi32.dll
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], bl
mov byte [esp + 0x5b], bl
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], 5
xor edi, edi
mov dword [esp + 0x24], ebx
xor ebp, ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
je 0x43655e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ba4d0
push esi
call edi
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x436735
push 0x4ba4c8
push esi
call edi
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x436735
push 0x4ba4b8
push esi
call edi
mov ebp, eax
cmp ebp, ebx
je 0x436735
push 0x4ba4a8
push esi
call edi
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x436735
push 0x4ba488
push esi
call edi
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x436735
push 0x4ba46c
push esi
call edi
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x436735
push str.AddAce
push esi
call edi
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x436735
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x7c]
push edx
call edi
test eax, eax
je 0x436735
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 + 0x7c]
push ecx
call edi
test eax, eax
je 0x436735
mov edx, dword [esp + 0x18]
push edx
call ebp
add eax, 0xc
push eax
mov dword [esp + 0x14], eax
call fcn.0047fb47
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x436735
mov ax, word [esp + 0x10]
mov byte [edi], bl
mov word [edi + 2], ax
mov byte [edi + 1], bl
mov dword [edi + 4], 0x1f0001
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [edi + 8]
push eax
call fcn.004903d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call ebp
mov ebp, eax
add ebp, 0xc
push ebp
call fcn.0047fb47
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4366fb
mov byte [esi], bl
mov word [esi + 2], bp
mov byte [esi + 1], bl
mov dword [esi + 4], 0x1f0001
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esi + 8]
push ecx
call fcn.004903d0
mov edx, dword [esp + 0x1c]
lea ebp, [edx + ebp + 8]
push ebp
mov dword [esp + 0x20], ebp
call fcn.0047fb47
mov ebp, eax
add esp, 0x10
cmp ebp, ebx
je 0x4366fd
mov eax, dword [esp + 0x10]
push 2
push eax
push ebp
call dword [esp + 0x3c]
test eax, eax
je 0x4366fd
movzx ecx, word [edi + 2]
push ecx
push edi
push 0xffffffffffffffff
push 2
push ebp
call dword [esp + 0x38]
test eax, eax
je 0x4366fd
movzx edx, word [esi + 2]
push edx
push esi
push 0xffffffffffffffff
push 2
push ebp
call dword [esp + 0x38]
test eax, eax
je 0x4366fd
push 0x200
call fcn.0047fb47
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4366fd
push 1
push eax
call dword [esp + 0x30]
test eax, eax
je 0x4366fd
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push 1
push eax
call dword [esp + 0x4c]
test eax, eax
je 0x4366fd
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
push edx
mov dword [esp + 0x50], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x2c], eax
jmp 0x4366fd
mov ebp, ebx
push edi
call fcn.0047fb77
add esp, 4
cmp esi, ebx
je 0x436713
push esi
call fcn.0047fb77
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x436724
push eax
call fcn.0047fb77
add esp, 4
cmp ebp, ebx
je 0x436731
push ebp
call fcn.0047fb77
add esp, 4
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x436742
push eax
call dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x43674f
push eax
call dword [esp + 0x24]
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x436762
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x43676d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048e5ae
add esp, 0x50
ret 8