Function at 0x10004340
Capabilities:
Get process heap flags

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
lea ecx, [ebp - 0xe12]
lea edi, [ebp - 0xe10]
push esi
sub ecx, edi
push ebx
add ecx, 0x404
shr ecx, 2
sub esp, 0xf80
mov dword [ebp - 0xe12], 0
mov dword [ebp - 0xa12], 0
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xa0c]
lea ecx, [ebp - 0xa0e]
mov dword [ebp - 0xa0e], 0
sub ecx, edi
mov dword [ebp - 0x10], 0
add ecx, 0xa02
shr ecx, 2
rep stosd dword es:[edi], eax
test byte [0x10006060], 1
jne 0x100047a8
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10004b25
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x10004b40
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Basic
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0xf44], eax
call eax
test eax, eax
jne 0x100044c0
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x18]
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
test esi, esi
je 0x10004ca8
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
test esi, esi
je 0x10004431
mov eax, dword [eax + 4]
lea edx, [eax - 1]
cmp edx, 0x200
jbe 0x10004a20
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x1000444d
mov eax, dword [eax + 0x14]
lea edx, [eax - 1]
cmp edx, 0x4ff
jbe 0x10004a58
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
lea eax, [ebp - 0xe12]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0x202
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.credui.dll_CredUIPromptForCredentialsW
sub esp, 0x28
mov esi, eax
test eax, eax
je 0x100045f0
lea esp, [ebp - 0xc]
mov eax, esi
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
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
je 0x100043eb
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Negotiate
mov dword [esp], eax
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
je 0x100043eb
test byte [0x10006060], 1
je 0x10004b4d
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x10004fd5
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x10004e90
mov esi, dword [ebp + 0x14]
cmp word [esi], 0
je 0x10005004
mov ecx, esi
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x10004550
mov edi, 0x224c
lea ebx, [ebp - 0xf3c]
lea esi, [ebp - 0xe1c]
mov word [ebp - 0xf3e], di
jmp 0x100045b5
cmp ax, 9
je 0x10004f20
cmp ax, 0xa
jne 0x10004f3e
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x10004e62
cmp ebx, esi
ja 0x10004e62
mov edx, eax
add dword [ebp + 0x14], 2
mov eax, dword [ebp + 0x14]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x10004f08
jbe 0x10004580
cmp ax, 0x22
je 0x10004f90
cmp ax, 0x5c
jne 0x10004f31
mov eax, 0x5c5c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100045a0
lea eax, [ebp - 0xe12]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ebx, eax
test eax, eax
je 0x100049b8
lea ecx, [eax + 2]
cmp word [eax + 2], 0
mov dword [ebp - 0xf48], ecx
je 0x10004fc1
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10004628
sub ecx, dword [ebp - 0xf48]
mov eax, ecx
lea edi, [ecx + 2]
sar eax, 1
mov dword [ebp - 0xf58], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.NTLM
mov dword [esp], eax
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
jne 0x10004db0
lea edx, [ebp - 0xe12]
mov eax, ebx
sub eax, edx
mov edx, eax
add eax, 2
mov dword [ebp - 0xf50], eax
sar edx, 1
lea eax, [ebp - 0xe12]
mov dword [ebp - 0xf4c], edx
mov dword [ebp - 0xf5c], eax
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0xf50]
lea eax, [eax + edi + 0x1c]
cmp word [ebp - 0xa0e], 0
je 0x10004fa8
lea ebx, [ebp - 0xa0e]
nop
add ebx, 2
cmp word [ebx], 0
jne 0x100046b0
lea edx, [ebp - 0xa0e]
sub ebx, edx
lea edx, [ebx + 2]
sar ebx, 1
mov dword [ebp - 0xf44], edx
mov dword [ebp - 0xf54], ebx
add eax, dword [ebp - 0xf44]
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 ebx, eax
test eax, eax
je 0x10005062
lea ecx, [eax + 0x1c]
mov eax, dword [ebp - 0xf48]
mov dword [esp + 8], edi
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0xf48], ecx
call sym._memcpy
mov eax, dword [ebp - 0xf58]
mov ecx, dword [ebp - 0xf48]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xf4c]
mov dword [ebx], ecx
add ecx, edi
test eax, eax
jne 0x10004d50
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [ebp - 0xf44]
mov dword [esp], ecx
mov dword [ebp - 0xf44], ecx
mov dword [esp + 8], eax
lea eax, [ebp - 0xa0e]
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [ebp - 0xf54]
mov ecx, dword [ebp - 0xf44]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], ecx
mov dword [eax], ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10004d90
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x100048a8
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0xf48], str._invalid_
sub esp, 8
test eax, eax
jne 0x100048c2
mov esi, dword [ebp + 0x14]
cmp word [esi], 0
je 0x10004ee3
mov ecx, esi
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x10004800
mov ebx, dword [ebp + 0x14]
mov ecx, 0x224c
lea esi, [ebp - 0xe1c]
mov word [ebp - 0xf3e], cx
lea ecx, [ebp - 0xf3c]
mov dword [ebp - 0xf44], ebx
jmp 0x10004865
cmp ax, 9
je 0x10004c90
cmp ax, 0xa
jne 0x10004c0e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x10004cd8
cmp ecx, esi
ja 0x10004cd8
mov edx, eax
add dword [ebp - 0xf44], 2
mov eax, dword [ebp - 0xf44]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x10004c78
jbe 0x10004830
cmp ax, 0x22
je 0x10004c60
cmp ax, 0x5c
jne 0x10004c01
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10004850
movzx eax, word [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0xf48], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10004da0
mov eax, dword [ebp + 8]
shr eax, 0x10
je 0x10004d10
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x10004abe
mov esi, dword [ebp + 8]
cmp word [esi], 0
je 0x10004ec2
mov ecx, esi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x10004910
mov ebx, dword [ebp + 8]
mov esi, 0x224c
lea ecx, [ebp - 0xf3c]
mov word [ebp - 0xf3e], si
lea esi, [ebp - 0xe1c]
mov dword [ebp - 0xf44], ebx
jmp 0x10004975
cmp ax, 9
je 0x10004bf0
cmp ax, 0xa
jne 0x10004b6b
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, esi
ja 0x10004a90
test edx, edx
jle 0x10004a90
mov edx, eax
add dword [ebp - 0xf44], 2
mov eax, dword [ebp - 0xf44]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x10004bd8
jbe 0x10004940
cmp ax, 0x22
je 0x10004bc0
cmp ax, 0x5c
jne 0x10004b5e
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10004960
cmp word [ebp - 0xe12], 0
lea eax, [ebp - 0xe12]
je 0x10005025
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100049d0
lea edi, [ebp - 0xe12]
sub eax, edi
mov edi, eax
sar edi, 1
mov dword [ebp - 0xf58], edi
lea edi, [eax + 2]
add eax, 0x20
mov dword [ebp - 0xf5c], 0
lea ebx, [ebp - 0xe12]
mov dword [ebp - 0xf4c], 0
mov dword [ebp - 0xf50], 2
mov dword [ebp - 0xf48], ebx
jmp 0x1000469a
lea edx, [eax + eax]
cmp edx, 4
jae 0x10004e30
test edx, edx
je 0x10004a42
movzx ecx, byte [esi]
mov byte [ebp - 0xe12], cl
test dl, 2
jne 0x10005050
xor ecx, ecx
mov word [ebp + eax*2 - 0xe12], cx
jmp 0x10004431
lea edx, [eax + eax]
cmp edx, 4
jae 0x10004df8
test edx, edx
je 0x10004a7a
movzx ecx, byte [esi]
mov byte [ebp - 0xa0e], cl
test dl, 2
jne 0x1000503e
xor edx, edx
mov word [ebp + eax*2 - 0xa0e], dx
jmp 0x1000444d
mov byte [ecx], 0x22
test eax, eax
jle 0x10004edb
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0xf3e]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.__s___p___lu___s___p___p___p___lx__stub_n
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], 0x10006060
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0xf48]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x100043bd
lea esp, [ebp - 0xc]
mov esi, 0x57
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x20
test byte [0x10006060], 1
jne 0x10004ffa
lea esp, [ebp - 0xc]
mov esi, 0x554
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x20
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10004d30
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10004960
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004960
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004960
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004960
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10004d40
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10004850
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10004850
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004850
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004850
lea eax, [ebp - 0xa0e]
mov dword [esp + 4], 0x501
mov ecx, 0x202
lea edx, [ebp - 0xe12]
mov dword [esp], eax
mov eax, dword [ebp + 8]
call sym._find_existing_credential
jmp 0x1000444d
mov byte [ecx], 0x22
test eax, eax
jle 0x10004efc
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0xf3e]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0xf48], eax
jmp 0x100048c2
movzx eax, word [ebp + 8]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x10004abe
mov byte [ecx], al
add ecx, 1
jmp 0x10004960
mov byte [ecx], al
add ecx, 1
jmp 0x10004850
mov edi, dword [ebp - 0xf50]
mov eax, dword [ebp - 0xf5c]
mov dword [esp], ecx
mov dword [ebp - 0xf48], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call sym._memcpy
mov ecx, dword [ebp - 0xf48]
mov eax, dword [ebp - 0xf4c]
mov dword [ebx + 8], ecx
add ecx, edi
mov dword [ebx + 0xc], eax
jmp 0x10004755
mov dword [ebp - 0xf48], str._null_
jmp 0x100048c2
mov edx, str._null_
jmp 0x10004abe
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Negotiate
mov dword [esp], eax
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
je 0x10004662
mov dword [ebp - 0xf4c], 0
mov dword [ebp - 0xf50], 2
mov dword [ebp - 0xf5c], 0
jmp 0x1000468b
mov ecx, dword [esi]
lea edi, [ebp - 0xa0a]
and edi, 0xfffffffc
mov dword [ebp - 0xa0e], ecx
mov ecx, dword [esi + edx - 4]
mov dword [ebp + edx - 0xa12], ecx
lea ecx, [ebp - 0xa0e]
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x10004a7a
mov ecx, dword [esi]
lea edi, [ebp - 0xe0e]
and edi, 0xfffffffc
mov dword [ebp - 0xe12], ecx
mov ecx, dword [esi + edx - 4]
mov dword [ebp + edx - 0xe16], ecx
lea ecx, [ebp - 0xe12]
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x10004a42
mov byte [ebx], 0x22
test eax, eax
jle 0x1000501d
mov edi, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0xf3e]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov esi, 0x554
mov dword [esp + 0xc], str.package__s_not_supported_n
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 4], 0x10006060
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x100044aa
mov ebx, 0x224c
mov byte [ebp - 0xf3c], 0x22
lea ecx, [ebp - 0xf3c]
mov word [ebp - 0xf3e], bx
lea eax, [ecx + 1]
jmp 0x10004aab
mov eax, 0x224c
mov byte [ebp - 0xf3c], 0x22
lea ecx, [ebp - 0xf3c]
mov word [ebp - 0xf3e], ax
lea eax, [ecx + 1]
jmp 0x10004cf3
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100045a0
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100045a0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10004ff0
mov edi, eax
mov byte [ebx], 0x5c
add ebx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ebx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
and edi, 0xf
mov byte [ebx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
jmp 0x100045a0
mov eax, 0x225c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100045a0
mov dword [ebp - 0xf54], 0
mov dword [ebp - 0xf44], 2
jmp 0x100046d2
mov dword [ebp - 0xf58], 0
mov edi, 2
jmp 0x10004644
movzx eax, word [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x10004e90
mov byte [ebx], al
add ebx, 1
jmp 0x100045a0
mov edx, str._null_
jmp 0x10004e90
mov eax, 0x224c
mov byte [ebp - 0xf3c], 0x22
lea ebx, [ebp - 0xf3c]
mov word [ebp - 0xf3e], ax
lea eax, [ebx + 1]
jmp 0x10004e7d
mov dword [ebp - 0xf58], 0
mov eax, 0x20
mov edi, 2
jmp 0x100049f1
movzx ecx, word [esi + edx - 2]
mov word [ebp + edx - 0xa10], cx
jmp 0x10004a7a
movzx ecx, word [esi + edx - 2]
mov word [ebp + edx - 0xe14], cx
jmp 0x10004a42
mov esi, 0xe
jmp 0x100044aa