Function at 0x10003560
Capabilities:
Get process heap flags

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x101
xor edx, edx
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0xe12]
push ebx
mov edi, esi
sub esp, 0xe54
rep stosd dword es:[edi], eax
mov ecx, 0x280
lea edi, [ebp - 0xa0e]
rep stosd dword es:[edi], eax
mov word [edi], dx
test byte [0x10006018], 1
jne 0x100038a0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10003913
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100036d0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Basic
mov edi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], eax
call edi
test eax, eax
jne 0x100036a0
mov eax, dword [ebp + 0x24]
and eax, 1
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 0x40082
mov eax, ebx
or eax, 0x40
test byte [ebp + 0x24], 2
cmove ebx, eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100039f8
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x10003619
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
lea ecx, [edx - 1]
cmp ecx, 0x200
jbe 0x10003990
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10003638
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 0x14]
lea ecx, [edx - 1]
cmp ecx, 0x4ff
jbe 0x100039c0
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0x501
mov dword [esp + 0x20], eax
lea eax, [ebp - 0xa0e]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0x202
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call sym.credui.dll_CredUIPromptForCredentialsW
sub esp, 0x28
mov ebx, eax
test eax, eax
je 0x100036f0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.NTLM
mov dword [esp], eax
call edi
test eax, eax
je 0x100035d0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Negotiate
mov dword [esp], eax
call edi
test eax, eax
je 0x100035d0
test byte [0x10006018], 1
jne 0x10003a60
lea esp, [ebp - 0xc]
mov ebx, 0x554
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov edx, eax
test eax, eax
je 0x10003928
lea eax, [eax + 2]
cmp word [edx + 2], 0
mov dword [ebp - 0xe1c], eax
je 0x10003af4
nop
add eax, 2
cmp word [eax], 0
jne 0x10003720
sub eax, dword [ebp - 0xe1c]
mov ecx, eax
add eax, 2
sar ecx, 1
mov dword [ebp - 0xe18], eax
mov dword [ebp - 0xe2c], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe20], edx
mov dword [esp + 4], str.NTLM
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xe20]
test eax, eax
jne 0x10003a98
mov eax, edx
mov dword [ebp - 0xe30], esi
sub eax, esi
mov ecx, eax
add eax, 2
sar ecx, 1
mov dword [ebp - 0xe20], eax
mov dword [ebp - 0xe24], ecx
xor ecx, ecx
mov eax, dword [ebp - 0xe18]
mov esi, dword [ebp - 0xe20]
mov word [edx], cx
lea eax, [eax + esi + 0x1c]
cmp word [ebp - 0xa0e], 0
je 0x10003ae0
lea edi, [ebp - 0xa0e]
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x100037b0
lea esi, [ebp - 0xa0e]
sub edi, esi
lea esi, [edi + 2]
sar edi, 1
mov dword [ebp - 0xe28], edi
add eax, esi
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x10003b2b
lea ecx, [eax + 0x1c]
mov edx, dword [ebp - 0xe1c]
mov eax, dword [ebp - 0xe18]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [ebp - 0xe1c], ecx
call sym._memcpy
mov ecx, dword [ebp - 0xe1c]
mov edx, dword [ebp - 0xe2c]
mov eax, dword [ebp - 0xe24]
mov dword [edi], ecx
add ecx, dword [ebp - 0xe18]
mov dword [edi + 4], edx
test eax, eax
jne 0x10003a20
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea eax, [ebp - 0xa0e]
mov dword [esp + 8], esi
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0xe18], ecx
call sym._memcpy
mov eax, dword [ebp - 0xe28]
mov ecx, dword [ebp - 0xe18]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x10], ecx
mov dword [eax], edi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0xc], str.__s___p___lu___s___p___p___p___lx__stub_n
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], 0x10006018
mov dword [esp + 0x14], edx
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100035a7
lea esp, [ebp - 0xc]
mov ebx, 0x57
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
cmp word [ebp - 0xe12], 0
mov eax, esi
je 0x10003b0d
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x10003940
sub eax, esi
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0xe2c], ecx
lea ecx, [eax + 2]
add eax, 0x20
mov dword [ebp - 0xe18], ecx
mov dword [ebp - 0xe30], 0
mov dword [ebp - 0xe24], 0
mov dword [ebp - 0xe20], 2
mov dword [ebp - 0xe1c], esi
jmp 0x10003798
lea ecx, [edx + edx]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [ebp - 0xe18], edx
call sym._memcpy
mov edx, dword [ebp - 0xe18]
xor eax, eax
mov word [ebp + edx*2 - 0xe12], ax
jmp 0x10003619
lea ecx, [edx + edx]
mov dword [esp + 4], eax
lea eax, [ebp - 0xa0e]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [ebp - 0xe18], edx
call sym._memcpy
mov edx, dword [ebp - 0xe18]
xor eax, eax
mov word [ebp + edx*2 - 0xa0e], ax
jmp 0x10003638
lea eax, [ebp - 0xa0e]
mov dword [esp + 4], 0x501
mov ecx, 0x202
mov edx, esi
mov dword [esp], eax
mov eax, dword [ebp + 8]
call sym._find_existing_credential
jmp 0x10003638
mov edx, dword [ebp - 0xe30]
mov eax, dword [ebp - 0xe20]
mov dword [esp], ecx
mov dword [ebp - 0xe18], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._memcpy
mov ecx, dword [ebp - 0xe18]
mov edx, dword [ebp - 0xe24]
mov dword [edi + 8], ecx
add ecx, dword [ebp - 0xe20]
mov dword [edi + 0xc], edx
jmp 0x10003855
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.package__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 4], 0x10006018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x100036dd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe20], edx
mov dword [esp + 4], str.Negotiate
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xe20]
test eax, eax
je 0x10003766
mov dword [ebp - 0xe24], 0
mov dword [ebp - 0xe20], 2
mov dword [ebp - 0xe30], 0
jmp 0x10003783
mov dword [ebp - 0xe28], 0
mov esi, 2
jmp 0x100037cc
mov dword [ebp - 0xe2c], 0
mov dword [ebp - 0xe18], 2
jmp 0x10003742
mov dword [ebp - 0xe2c], 0
mov eax, 0x20
mov dword [ebp - 0xe18], 2
jmp 0x10003961
mov ebx, 0xe
jmp 0x1000368b