Function at 0x490751
Capabilities:
Prompt user for credentials

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
xor edx, edx
stosd dword es:[edi], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x49095a
cmp dword [ebp + 0x18], edx
je 0x49095a
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x49095a
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x49095a
test byte [ebp + 0x20], 4
mov dword [eax], edx
lea eax, [ecx + 4]
mov dword [ebp - 0x18], eax
lea eax, [ecx + 0x104]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebx], edx
mov dword [ebp - 0x24], 0x14
mov dword [ebp - 0x20], eax
je 0x4907c8
mov esi, dword [ebp + 0x1c]
or esi, 0x20
jmp 0x490830
test byte [ebp + 0x20], 2
je 0x49082d
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.00490e20
mov esi, eax
test esi, esi
jns 0x490823
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x49081c
test byte [ecx + 0x1c], 8
je 0x49081c
cmp byte [ecx + 0x19], 2
jb 0x49081c
call fcn.0042386b
push esi
push 0x4155fc
push eax
mov eax, dword [section..data]
mov edx, 0x415704
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.0042371b
push 5
jmp 0x490992
mov esi, dword [ebp + 0x1c]
or esi, 0x10
xor edx, edx
jmp 0x490830
mov esi, dword [ebp + 0x1c]
or esi, 0x80040000
mov dword [ebp - 0xc], edx
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.credui.dll_CredUIPromptForWindowsCredentialsW]
mov edi, eax
cmp edi, 0xa0
jne 0x4908d5
mov eax, dword [section..data]
cmp eax, section..data
je 0x4908a1
test byte [eax + 0x1c], 1
je 0x4908a1
cmp byte [eax + 0x19], 2
jb 0x4908a1
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x415704
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x28
pop ecx
call fcn.004238e7
mov eax, dword [section..data]
and esi, 0xfffbffff
cmp dword [ebp - 0xc], 0
jle 0x490916
cmp eax, section..data
je 0x490910
test byte [eax + 0x1c], 1
je 0x490910
cmp byte [eax + 0x19], 2
jb 0x490910
call fcn.0042386b
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x29
jmp 0x490905
cmp edi, 0x57
jne 0x490928
mov eax, dword [section..data]
cmp eax, section..data
je 0x490910
test byte [eax + 0x1c], 1
je 0x490910
cmp byte [eax + 0x19], 2
jb 0x490910
call fcn.0042386b
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2a
mov edx, 0x415704
pop ecx
call fcn.004238e7
and esi, 0x7fffffff
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 3
jl 0x490839
jmp 0x49092c
test edi, edi
jne 0x490993
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x490941
push 8
jmp 0x490992
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x28]
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x490993
mov eax, dword [section..data]
cmp eax, section..data
je 0x490990
test byte [eax + 0x1c], 1
je 0x490990
cmp byte [eax + 0x19], 2
jb 0x490990
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x415704
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x26
pop ecx
call fcn.004238e7
push 0x57
pop edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4909b3
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4909aa
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4909a1
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x24