Function at 0x100044c0
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 [0x10007060], 1
jne 0x10004930
mov eax, dword [ebp + 8]
test eax, eax
je 0x10004cd3
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x10004ce8
mov dword [esp + 4], str.Basic
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0xf44], eax
call eax
test eax, eax
jne 0x10004640
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x18]
and eax, 1
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 0x400c2
cmp eax, 1
sbb eax, eax
and eax, 0xfffffffe
add eax, 0x40082
test byte [ebp + 0x24], 2
cmovne ebx, eax
test esi, esi
je 0x10004d80
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
test esi, esi
je 0x100045b9
mov eax, dword [eax + 4]
lea edx, [eax - 1]
cmp edx, 0x200
jbe 0x10004bd0
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x100045d5
mov eax, dword [eax + 0x14]
lea edx, [eax - 1]
cmp edx, 0x4ff
jbe 0x10004c08
mov dword [esp + 0x24], ebx
mov eax, dword [ebp + 0x20]
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 + 0x14], 0x202
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.credui.dll_CredUIPromptForCredentialsW
sub esp, 0x28
mov ebx, eax
test eax, eax
je 0x10004770
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov dword [esp + 4], str.NTLM
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
je 0x1000456b
mov dword [esp + 4], str.Negotiate
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
je 0x1000456b
test byte [0x10007060], 1
je 0x10004cf5
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x100050ca
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x10004f4d
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x100051d5
lea esi, cs:[esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [eax + edx*2 + 2], 0
jne 0x100046d0
mov ebx, 0x224c
movzx esi, word [str._r_]
movzx edi, word [0x1000956a]
lea eax, [ebp - 0xf3c]
mov word [ebp - 0xf3e], bx
jmp 0x10004737
cmp cx, 9
je 0x10005080
cmp cx, 0xa
jne 0x100050e2
mov ecx, 0x6e5c
add eax, 2
mov word [eax - 2], cx
sub edx, 1
jb 0x100051af
lea ecx, [ebp - 0xe1c]
cmp ecx, eax
jb 0x10005146
add dword [ebp + 0x14], 2
mov ebx, dword [ebp + 0x14]
movzx ecx, word [ebx - 2]
cmp cx, 0xd
je 0x10005070
jbe 0x10004700
cmp cx, 0x22
je 0x10005060
cmp cx, 0x5c
jne 0x10005133
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x10004720
lea eax, [ebp - 0xe12]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
mov edi, eax
test eax, eax
je 0x10004b60
lea eax, [eax + 2]
cmp word [edi + 2], 0
mov dword [ebp - 0xf4c], eax
je 0x100050ac
lea esi, [esi]
mov edx, eax
add eax, 2
cmp word [eax], 0
jne 0x100047a8
sub edx, edi
mov eax, edx
lea esi, [edx + 0x1e]
sar eax, 1
mov dword [ebp - 0xf58], eax
add eax, 1
mov dword [ebp - 0xf50], eax
mov dword [esp + 4], str.NTLM
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
jne 0x10004f80
lea edx, [ebp - 0xe12]
mov eax, edi
sub eax, edx
mov edx, eax
add eax, 2
mov dword [ebp - 0xf48], eax
sar edx, 1
lea eax, [ebp - 0xe12]
mov dword [ebp - 0xf44], edx
mov dword [ebp - 0xf5c], eax
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0xf48]
lea edx, [esi + eax]
cmp word [ebp - 0xa0e], 0
je 0x10005098
lea eax, [ebp - 0xa0e]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10004838
lea esi, [ebp - 0xa0e]
sub eax, esi
lea edi, [eax + 2]
sar eax, 1
mov dword [ebp - 0xf54], eax
lea eax, [edx + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x10005217
mov edx, dword [ebp - 0xf50]
lea ecx, [eax + 0x1c]
add edx, edx
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xf4c]
mov dword [ebp - 0xf50], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0xf4c], ecx
call sym._memcpy
mov ecx, dword [ebp - 0xf4c]
mov edx, dword [ebp - 0xf50]
mov eax, dword [ebp - 0xf58]
mov dword [esi], ecx
add edx, ecx
mov ecx, dword [ebp - 0xf44]
mov dword [esi + 4], eax
xor eax, eax
test ecx, ecx
jne 0x10004eb0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xf44]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0xa0e]
mov dword [esp + 8], edi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0xf44], edx
call sym._memcpy
mov eax, dword [ebp - 0xf54]
mov edx, dword [ebp - 0xf44]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x10], edx
mov dword [eax], esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10004f38
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x10004a40
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x14]
mov esi, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x10004a55
mov edi, dword [ebp + 0x14]
cmp word [edi], 0
je 0x10005191
mov ecx, edi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x10004980
mov ebx, dword [ebp + 0x14]
mov edi, 0x224c
lea eax, [ebp - 0xf3c]
mov word [ebp - 0xf3e], di
movzx edi, word [str._r_]
mov dword [ebp - 0xf44], ebx
jmp 0x100049f7
cmp cx, 9
je 0x10004d68
cmp cx, 0xa
jne 0x10004de8
mov esi, 0x6e5c
add eax, 2
mov word [eax - 2], si
lea esi, cs:[esi]
sub edx, 1
jb 0x10005050
lea ecx, [ebp - 0xe1c]
cmp ecx, eax
jb 0x10004ef0
add dword [ebp - 0xf44], 2
mov esi, dword [ebp - 0xf44]
movzx ecx, word [esi - 2]
cmp cx, 0xd
je 0x10004d00
jbe 0x100049b8
cmp cx, 0x22
je 0x10004d38
cmp cx, 0x5c
jne 0x10004e98
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x100049e0
mov eax, dword [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov esi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10004f28
mov eax, dword [ebp + 8]
shr eax, 0x10
je 0x10004db0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x10004c72
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x10005173
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [eax + edx*2 + 2], 0
jne 0x10004aa0
mov ebx, dword [ebp + 8]
mov edi, 0x224c
mov dword [ebp - 0xf48], esi
lea eax, [ebp - 0xf3c]
mov word [ebp - 0xf3e], di
movzx edi, word [str._r_]
mov dword [ebp - 0xf44], ebx
jmp 0x10004b17
cmp cx, 9
je 0x10004d20
cmp cx, 0xa
jne 0x10004e40
mov esi, 0x6e5c
add eax, 2
mov word [eax - 2], si
sub edx, 1
jb 0x10005038
lea ecx, [ebp - 0xe1c]
cmp ecx, eax
jb 0x10004c40
add dword [ebp - 0xf44], 2
mov ebx, dword [ebp - 0xf44]
movzx ecx, word [ebx - 2]
cmp cx, 0xd
je 0x10004d10
jbe 0x10004ae0
cmp cx, 0x22
je 0x10004d50
cmp cx, 0x5c
jne 0x10004dd0
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x10004b00
cmp word [ebp - 0xe12], 0
lea eax, [ebp - 0xe12]
je 0x100051b7
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10004b78
lea edi, [ebp - 0xe12]
sub eax, edi
mov edi, eax
lea edx, [eax + 0x20]
sar edi, 1
mov dword [ebp - 0xf58], edi
add edi, 1
mov dword [ebp - 0xf50], edi
mov dword [ebp - 0xf5c], 0
lea eax, [ebp - 0xe12]
mov dword [ebp - 0xf44], 0
mov dword [ebp - 0xf48], 2
mov dword [ebp - 0xf4c], eax
jmp 0x10004820
lea edx, [eax + eax]
cmp edx, 4
jae 0x10005000
test edx, edx
je 0x10004bf2
movzx ecx, byte [esi]
mov byte [ebp - 0xe12], cl
test dl, 2
jne 0x10005205
xor ecx, ecx
mov word [ebp + eax*2 - 0xe12], cx
jmp 0x100045b9
lea edx, [eax + eax]
cmp edx, 4
jae 0x10004fc8
test edx, edx
je 0x10004c2a
movzx ecx, byte [esi]
mov byte [ebp - 0xa0e], cl
test dl, 2
jne 0x100051f3
xor edx, edx
mov word [ebp + eax*2 - 0xa0e], dx
jmp 0x100045d5
mov byte [eax], 0x22
mov esi, dword [ebp - 0xf48]
test edx, edx
je 0x10005041
mov byte [eax + 3], 0x2e
mov edx, 0x2e2e
mov word [eax + 1], dx
lea edx, [eax + 4]
lea eax, [ebp - 0xf3e]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov ebx, dword [ebp + 0x24]
mov dword [esp + 0x2c], ebx
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x28], edi
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x24], ebx
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], str.__s___p___lu___s___p___p___p___lx__stub_n
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 4], 0x10007060
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000453d
lea esp, [ebp - 0xc]
mov ebx, 0x57
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
test byte [0x10007060], 1
jne 0x10004f48
mov ebx, 0x554
jmp 0x10004632
mov word [eax], di
add eax, 2
jmp 0x100049e0
mov word [eax], di
add eax, 2
jmp 0x10004b00
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x10004b00
movzx ebx, word [0x1000956a]
add eax, 2
mov word [eax - 2], bx
jmp 0x100049e0
movzx ebx, word [0x1000956a]
add eax, 2
mov word [eax - 2], bx
jmp 0x10004b00
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x100049e0
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 0x100045d5
mov eax, dword [ebp + 8]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10004c72
lea esi, [ecx - 0x20]
cmp si, 0x5e
ja 0x10004e40
mov byte [eax], cl
add eax, 1
jmp 0x10004b00
mov esi, ecx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, ecx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, ecx
and ecx, 0xf
shr si, 4
movzx ecx, byte [ecx + str.0123456789abcdefCredUIStoreSSOCredA]
and esi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x100049e0
mov esi, ecx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, ecx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, ecx
and ecx, 0xf
shr si, 4
movzx ecx, byte [ecx + str.0123456789abcdefCredUIStoreSSOCredA]
and esi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x10004b00
lea esi, [ecx - 0x20]
cmp si, 0x5e
ja 0x10004de8
mov byte [eax], cl
add eax, 1
jmp 0x100049e0
mov eax, dword [ebp - 0xf48]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xf5c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0xf4c], edx
call sym._memcpy
mov edx, dword [ebp - 0xf4c]
mov ecx, dword [ebp - 0xf48]
mov eax, edx
add edx, ecx
jmp 0x100048dc
mov byte [eax], 0x22
test edx, edx
je 0x10005053
mov byte [eax + 3], 0x2e
mov edx, 0x2e2e
mov word [eax + 1], dx
lea edx, [eax + 4]
lea eax, [ebp - 0xf3e]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov esi, eax
jmp 0x10004a55
mov eax, str._null_
jmp 0x10004c72
mov esi, str._null_
jmp 0x10004a55
mov eax, str._null_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.package__s_not_supported_n
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 4], 0x10007060
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10004cf5
mov dword [esp + 4], str.Negotiate
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0xf44]
call eax
test eax, eax
je 0x100047e9
mov dword [ebp - 0xf44], 0
mov dword [ebp - 0xf48], 2
mov dword [ebp - 0xf5c], 0
jmp 0x10004812
mov ecx, dword [esi]
mov dword [ebp - 0xa0e], ecx
mov ecx, dword [esi + edx - 4]
mov dword [ebp + edx - 0xa12], ecx
lea ecx, [ebp - 0xa0a]
mov edi, ecx
lea ecx, [ebp - 0xa0e]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x10004c2a
mov ecx, dword [esi]
mov dword [ebp - 0xe12], ecx
mov ecx, dword [esi + edx - 4]
mov dword [ebp + edx - 0xe16], ecx
lea ecx, [ebp - 0xe0e]
mov edi, ecx
lea ecx, [ebp - 0xe12]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x10004bf2
mov byte [eax], 0x22
mov esi, dword [ebp - 0xf48]
lea edx, [eax + 1]
jmp 0x10004c61
mov byte [eax], 0x22
lea edx, [eax + 1]
jmp 0x10004f0b
mov word [eax], di
add eax, 2
jmp 0x10004720
mov word [eax], si
add eax, 2
jmp 0x10004720
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x10004720
mov dword [ebp - 0xf54], 0
mov edi, 2
jmp 0x10004854
mov dword [ebp - 0xf58], 0
mov esi, 0x1e
mov dword [ebp - 0xf50], 1
jmp 0x100047cb
mov eax, dword [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10004f4d
mov ebx, ecx
mov byte [eax], 0x5c
add eax, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 4], bl
mov ebx, ecx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 3], bl
mov ebx, ecx
and ecx, 0xf
shr bx, 4
movzx ecx, byte [ecx + str.0123456789abcdefCredUIStoreSSOCredA]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x10004720
lea ebx, [ecx - 0x20]
cmp bx, 0x5e
ja 0x100050e2
mov byte [eax], cl
add eax, 1
jmp 0x10004720
mov byte [eax], 0x22
test edx, edx
je 0x100051b2
mov edi, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], di
lea eax, [ebp - 0xf3e]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x10004f4d
mov eax, 0x224c
mov byte [ebp - 0xf3c], 0x22
lea edx, [ebp - 0xf3b]
mov word [ebp - 0xf3e], ax
jmp 0x10004c61
mov eax, 0x224c
mov byte [ebp - 0xf3c], 0x22
lea edx, [ebp - 0xf3b]
mov word [ebp - 0xf3e], ax
jmp 0x10004f0b
mov byte [eax], 0x22
lea edx, [eax + 1]
jmp 0x1000515d
mov dword [ebp - 0xf58], 0
mov edx, 0x20
mov dword [ebp - 0xf50], 1
jmp 0x10004b9f
mov esi, 0x224c
mov byte [ebp - 0xf3c], 0x22
lea edx, [ebp - 0xf3b]
mov word [ebp - 0xf3e], si
jmp 0x1000515d
movzx ecx, word [esi + edx - 2]
mov word [ebp + edx - 0xa10], cx
jmp 0x10004c2a
movzx ecx, word [esi + edx - 2]
mov word [ebp + edx - 0xe14], cx
jmp 0x10004bf2
mov ebx, 0xe
jmp 0x10004632