Function at 0x445a04
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
mov eax, 0x50fa0b
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
call fcn.004d08c0
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 0x445a6d
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 0x445a69
mov dword [ebp - 0x28], 0xfffffb9f
mov word [ebp - 0x14], 0
jmp 0x445c4b
mov bl, 1
jmp 0x445a6f
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x38], eax
push 0x5d296f
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x445aa7
mov dword [ebp - 0x28], 0xfffffb95
cmp bl, 1
jne 0x445a9c
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
mov dword [esi], edx
mov word [ebp - 0x14], 0
jmp 0x445c4b
push 0x5d297b
push edi
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x445ae9
mov dword [ebp - 0x28], 0xfffffb8b
test edi, edi
je 0x445acd
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x445ade
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
mov dword [esi], edx
mov word [ebp - 0x14], 0
jmp 0x445c4b
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.004cde6c
mov dword [ebp - 0x54], 0x20
lea ecx, [ebp - 0x254]
add esp, 0xc
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], 1
push 0x5d298c
call fcn.004036e4
pop ecx
mov dword [ebp - 0x30], eax
push 0x5d299f
call fcn.004036e4
pop ecx
mov dword [ebp - 0x34], eax
push 1
push 0x5d29b1
call fcn.004038c8
add esp, 8
push 1
push 0x5d29c4
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 0x445bbf
mov ecx, dword [ebp - 0x30]
push ecx
push 0x5d29d6
call fcn.004038c8
add esp, 8
mov eax, dword [ebp - 0x34]
push eax
push 0x5d29e9
call fcn.004038c8
mov dword [ebp - 0x28], 0xfffffb81
xor edx, edx
add esp, 8
test edi, edi
mov dword [ebp - 0x38], edx
je 0x445ba3
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x445bb4
mov ecx, dword [esi]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [esi], eax
mov word [ebp - 0x14], 0
jmp 0x445c4b
mov edx, dword [ebp - 0x30]
push edx
push 0x5d29fb
call fcn.004038c8
add esp, 8
mov ecx, dword [ebp - 0x34]
push ecx
push 0x5d2a0e
call fcn.004038c8
add esp, 8
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x445c17
mov dword [ebp - 0x28], 0xfffffb77
xor edx, edx
test edi, edi
mov dword [ebp - 0x38], edx
je 0x445bfe
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x445c0f
mov ecx, dword [esi]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [esi], eax
mov word [ebp - 0x14], 0
jmp 0x445c4b
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 0x445c4b
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