Function at 0x10045e90
Capabilities:
Prompt user for credentials

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017136b
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x844], esi
mov dword [ebp - 0x848], ebx
push str.Performing_ShowCredentialDialog_...
push 2
mov dword [ebp - 4], 0
call fcn.100566d0
push 0x200
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1012bf20
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.1012bf20
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1012bf20
cmp dword [ebp + 0x1c], 8
lea eax, [ebp - 0x610]
push 0x200
push 0
lea edi, [ebp + 8]
cmovae edi, dword [ebp + 8]
push eax
call fcn.1012bf20
add esp, 0x38
mov ecx, esi
push 0
push 0x101a4228
call fcn.10004470
push 0
push 0x101a4228
mov ecx, ebx
call fcn.10004470
push 0xa
push 0
push 0x100
lea eax, [ebp - 0x610]
push eax
push 0x100
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
mov esi, eax
push esi
push str.ShowCredentialDialog_response:_lu
push 2
call fcn.100566d0
add esp, 0xc
cmp esi, 0x4c7
jne 0x10045fb5
push str.User_CANCELLED_credential_dialog_
push 2
call fcn.100566d0
add esp, 8
mov esi, 5
jmp 0x1004617b
test esi, esi
je 0x10045fc4
push esi
push str.CredUIPromptForCredentialsW___API_failed._Error:_lu
jmp 0x1004616c
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x100
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.credui.dll_CredUIParseUserNameW]
test eax, eax
jne 0x10046166
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x840], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046011
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x840]
call fcn.10004470
push edi
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 1
call fcn.10003bf0
lea eax, [ebp - 0x840]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.10056350
add esp, 8
test al, al
mov eax, dword [ebp - 0x814]
sete bl
cmp eax, 8
jb 0x10046080
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.10004630
xor eax, eax
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 7
cmp eax, 8
jb 0x100460be
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.10004630
test bl, bl
je 0x10046104
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100460d0
mov ebx, dword [ebp - 0x844]
lea eax, [ebp - 0x210]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10004470
push 1
push 0x101a3b4c
mov ecx, ebx
call fcn.1000b3c0
jmp 0x1004610a
mov ebx, dword [ebp - 0x844]
lea edx, [ebp - 0x410]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10046113
sub edx, esi
lea eax, [ebp - 0x410]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.1000b3c0
lea edx, [ebp - 0x610]
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10046140
mov ecx, dword [ebp - 0x848]
lea eax, [ebp - 0x610]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10004470
xor esi, esi
jmp 0x1004617b
push eax
push str.CredUIParseUserNameW___API_failed._Error:_lu
push 3
call fcn.100566d0
mov esi, 2
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x10046190
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10004630
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 0x20