Function at 0x447b18
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
mov eax, 0x5217df
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
call fcn.004d57f0
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 0x447b81
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 0x447b7d
mov dword [ebp - 0x28], 0xfffffb9f
mov word [ebp - 0x14], 0
jmp 0x447d5f
mov bl, 1
jmp 0x447b83
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x38], eax
push 0x5215bf
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x447bbb
mov dword [ebp - 0x28], 0xfffffb95
cmp bl, 1
jne 0x447bb0
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
mov dword [esi], edx
mov word [ebp - 0x14], 0
jmp 0x447d5f
push 0x5ebf00
push edi
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x447bfd
mov dword [ebp - 0x28], 0xfffffb8b
test edi, edi
je 0x447be1
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x447bf2
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
mov dword [esi], edx
mov word [ebp - 0x14], 0
jmp 0x447d5f
lea ecx, [ebp - 0x254]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00403494
add esp, 8
lea edx, [ebp - 0x54]
push 0x20
push 0
push edx
call fcn.004d2d9c
mov dword [ebp - 0x54], 0x20
lea ecx, [ebp - 0x254]
add esp, 0xc
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], 1
push 0x5ebf11
call fcn.00403700
pop ecx
mov dword [ebp - 0x30], eax
push 0x5ebf24
call fcn.00403700
pop ecx
mov dword [ebp - 0x34], eax
push 1
push 0x5ebf36
call fcn.004038e4
add esp, 8
push 1
push 0x5ebf49
call fcn.004038e4
add esp, 8
lea eax, [ebp - 0x54]
push eax
mov edx, dword [esi]
push edx
call dword [ebp - 0x2c]
test eax, eax
jne 0x447cd3
mov ecx, dword [ebp - 0x30]
push ecx
push 0x5ebf5b
call fcn.004038e4
add esp, 8
mov eax, dword [ebp - 0x34]
push eax
push 0x5ebf6e
call fcn.004038e4
mov dword [ebp - 0x28], 0xfffffb81
xor edx, edx
add esp, 8
test edi, edi
mov dword [ebp - 0x38], edx
je 0x447cb7
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x447cc8
mov ecx, dword [esi]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [esi], eax
mov word [ebp - 0x14], 0
jmp 0x447d5f
mov edx, dword [ebp - 0x30]
push edx
push 0x5ebf80
call fcn.004038e4
add esp, 8
mov ecx, dword [ebp - 0x34]
push ecx
push 0x5ebf93
call fcn.004038e4
add esp, 8
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x447d2b
mov dword [ebp - 0x28], 0xfffffb77
xor edx, edx
test edi, edi
mov dword [ebp - 0x38], edx
je 0x447d12
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp bl, 1
jne 0x447d23
mov ecx, dword [esi]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [esi], eax
mov word [ebp - 0x14], 0
jmp 0x447d5f
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 0x447d5f
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