Function at 0x10002360
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredEnumerateW]
sub esp, 0x10
test eax, eax
je 0x1000246f
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x10002460
xor ebx, ebx
jmp 0x100023f6
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x30]
cmp word [ecx], 0
je 0x1000248b
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x10002480
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add ebx, 1
cmp ebx, eax
jae 0x10002460
mov eax, dword [ebp - 0x1c]
lea edi, [ebx*4]
lea esi, [eax + edi]
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [edx - 1]
cmp ecx, 1
jbe 0x100023b8
test byte [0x10007060], 1
je 0x100023ec
mov dword [esp + 0x10], edx
add ebx, 1
mov dword [esp + 0xc], str.no_support_for_type__lu_credentials_n
mov dword [esp + 8], str.find_existing_credential
mov dword [esp + 4], 0x10007060
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp ebx, eax
jb 0x100023f6
lea esi, cs:[esi]
nop
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredFree]
sub esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
lea esi, [eax + edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
cmp word [ecx], 0
mov dword [ebp - 0x18], ecx
je 0x100024d0
mov edx, ecx
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x100024a0
mov dword [ebp - 0x18], ecx
sub edx, ecx
sar edx, 1
mov ecx, dword [ebp - 0x24]
cmp edx, ecx
jae 0x100024c1
mov eax, dword [eax + 0x18]
shr eax, 1
cmp eax, dword [ebp + 0xc]
jb 0x100024d4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x100023ec
xor edx, edx
jmp 0x100024b0
mov ecx, dword [ebp - 0x18]
test byte [0x10007060], 8
jne 0x1000253d
mov ebx, dword [ebp - 0x20]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x100024e8
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esi]
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [eax + 0x18]
and eax, 0xfffffffe
mov word [edi + eax], dx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredFree]
mov eax, 1
sub esp, 4
jmp 0x10002471
mov eax, ecx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.found_existing_credential_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.find_existing_credential
mov dword [esp + 4], 0x10007060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
mov eax, dword [ebp - 0x10]
lea esi, [eax + edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
jmp 0x100024e0