Function at 0x4454d4
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
mov eax, 0x50e5c7
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
call fcn.004cfcb8
mov dword [ebp - 0x28], 0xfffffbb2
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
mov edx, dword [ebp + 0x18]
xor ecx, ecx
mov dword [edx], ecx
mov eax, dword [esi]
test eax, eax
jne 0x44553d
push esi
push 0
push 2
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.ADVAPI32.dll_LogonUserA
test eax, eax
jne 0x445539
mov dword [ebp - 0x28], 0xfffffb9f
mov word [ebp - 0x14], 0
jmp 0x44571b
mov bl, 1
jmp 0x44553f
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x38], eax
push 0x5d134d
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x445577
mov dword [ebp - 0x28], 0xfffffb95
cmp bl, 1
jne 0x44556c
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
mov dword [esi], edx
mov word [ebp - 0x14], 0
jmp 0x44571b
push 0x5d1359
push edi
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x4455b9
mov dword [ebp - 0x28], 0xfffffb8b
test edi, edi
je 0x44559d
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x4455ae
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
mov dword [esi], edx
mov word [ebp - 0x14], 0
jmp 0x44571b
lea ecx, [ebp - 0x254]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040348c
add esp, 8
lea edx, [ebp - 0x54]
push 0x20
push 0
push edx
call fcn.004cd264
mov dword [ebp - 0x54], 0x20
lea ecx, [ebp - 0x254]
add esp, 0xc
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], 1
push 0x5d136a
call fcn.004036e4
pop ecx
mov dword [ebp - 0x30], eax
push 0x5d137d
call fcn.004036e4
pop ecx
mov dword [ebp - 0x34], eax
push 1
push 0x5d138f
call fcn.004038c8
add esp, 8
push 1
push 0x5d13a2
call fcn.004038c8
add esp, 8
lea eax, [ebp - 0x54]
push eax
mov edx, dword [esi]
push edx
call dword [ebp - 0x2c]
test eax, eax
jne 0x44568f
mov ecx, dword [ebp - 0x30]
push ecx
push 0x5d13b4
call fcn.004038c8
add esp, 8
mov eax, dword [ebp - 0x34]
push eax
push 0x5d13c7
call fcn.004038c8
mov dword [ebp - 0x28], 0xfffffb81
xor edx, edx
add esp, 8
test edi, edi
mov dword [ebp - 0x38], edx
je 0x445673
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x445684
mov ecx, dword [esi]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [esi], eax
mov word [ebp - 0x14], 0
jmp 0x44571b
mov edx, dword [ebp - 0x30]
push edx
push 0x5d13d9
call fcn.004038c8
add esp, 8
mov ecx, dword [ebp - 0x34]
push ecx
push 0x5d13ec
call fcn.004038c8
add esp, 8
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4456e7
mov dword [ebp - 0x28], 0xfffffb77
xor edx, edx
test edi, edi
mov dword [ebp - 0x38], edx
je 0x4456ce
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x4456df
mov ecx, dword [esi]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [esi], eax
mov word [ebp - 0x14], 0
jmp 0x44571b
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x38]
mov dword [edx], ecx
xor eax, eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x14], 0
jmp 0x44571b
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x260]
mov esi, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x258]
pop ebp
ret