Function at 0x10003950
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
lea edi, [ebp - 0xa0e]
mov ecx, 0x280
rep stosd dword es:[edi], eax
mov word [edi], dx
test byte [0x10005060], 1
jne 0x10003ca0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10003d13
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10003ac0
mov dword [esp + 4], str.Basic
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], eax
call edi
test eax, eax
jne 0x10003a90
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 0x10003df8
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x10003a09
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
lea ecx, [edx - 1]
cmp ecx, 0x200
jbe 0x10003d90
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10003a28
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 0x14]
lea ecx, [edx - 1]
cmp ecx, 0x4ff
jbe 0x10003dc0
mov dword [esp + 0x24], ebx
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], 0x501
mov dword [esp + 0x14], 0x202
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
lea eax, [ebp - 0xa0e]
mov dword [esp + 0x18], 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 0x10003ad8
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
call edi
test eax, eax
je 0x100039c0
mov dword [esp + 4], str.Negotiate
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call edi
test eax, eax
je 0x100039c0
test byte [0x10005060], 1
jne 0x10003e60
mov ebx, 0x554
jmp 0x10003a7b
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov edx, eax
test eax, eax
je 0x10003d28
cmp word [edx + 2], 0
lea eax, [eax + 2]
mov dword [ebp - 0xe20], eax
je 0x10003ef4
lea esi, [esi]
nop
mov ecx, eax
add eax, 2
cmp word [eax], 0
jne 0x10003b10
sub ecx, edx
mov eax, ecx
sar eax, 1
mov dword [ebp - 0xe2c], eax
add eax, 1
mov dword [ebp - 0xe24], eax
lea eax, [ecx + 0x1e]
mov dword [ebp - 0xe28], eax
mov dword [ebp - 0xe18], edx
mov dword [esp + 4], str.NTLM
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xe18]
test eax, eax
jne 0x10003e98
mov eax, edx
mov dword [ebp - 0xe30], esi
sub eax, esi
mov edi, eax
add eax, 2
sar edi, 1
mov dword [ebp - 0xe1c], eax
mov dword [ebp - 0xe18], edi
xor esi, esi
mov eax, dword [ebp - 0xe1c]
mov word [edx], si
mov edx, dword [ebp - 0xe28]
add edx, eax
cmp word [ebp - 0xa0e], 0
je 0x10003ee0
lea eax, [ebp - 0xa0e]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10003ba8
lea esi, [ebp - 0xa0e]
sub eax, esi
lea edi, [eax + 2]
sar eax, 1
mov dword [ebp - 0xe28], 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 0x10003f35
mov edx, dword [ebp - 0xe24]
lea ecx, [eax + 0x1c]
add edx, edx
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xe20]
mov dword [ebp - 0xe24], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0xe20], ecx
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0xe20]
mov edx, dword [ebp - 0xe24]
mov eax, dword [ebp - 0xe2c]
mov dword [esi], ecx
add edx, ecx
mov ecx, dword [ebp - 0xe18]
mov dword [esi + 4], eax
xor eax, eax
test ecx, ecx
jne 0x10003e20
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xe18]
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 - 0xe18], edx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0xe28]
mov dword [esi + 0x18], 0
mov edx, dword [ebp - 0xe18]
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]
call fcn.10001590
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.10001590
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x2c], ecx
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x28], edi
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___p___lu___s___p___p___p___lx__stub_n
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 0x14], ebx
mov dword [esp + 4], 0x10005060
mov dword [esp], 0
call fcn.10001870
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10003997
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 0x10003f17
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10003d40
sub eax, esi
lea edx, [eax + 0x20]
mov edi, eax
sar edi, 1
mov dword [ebp - 0xe2c], edi
add edi, 1
mov dword [ebp - 0xe24], edi
mov dword [ebp - 0xe30], 0
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe1c], 2
mov dword [ebp - 0xe20], esi
jmp 0x10003b8d
lea ecx, [edx + edx]
mov dword [ebp - 0xe18], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0xe18]
xor eax, eax
mov word [ebp + edx*2 - 0xe12], ax
jmp 0x10003a09
mov dword [ebp - 0xe18], edx
lea ecx, [edx + edx]
mov dword [esp + 4], eax
lea eax, [ebp - 0xa0e]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0xe18]
xor eax, eax
mov word [ebp + edx*2 - 0xa0e], ax
jmp 0x10003a28
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 fcn.10001a20
jmp 0x10003a28
mov eax, dword [ebp - 0xe1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe30]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0xe20], edx
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0xe20]
mov ecx, dword [ebp - 0xe1c]
mov eax, edx
add edx, ecx
jmp 0x10003c4c
mov eax, dword [ebp + 0x14]
call fcn.10001590
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], 0x10005060
mov dword [esp], 0
call fcn.10001870
jmp 0x10003acd
mov dword [ebp - 0xe18], edx
mov dword [esp + 4], str.Negotiate
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xe18]
test eax, eax
je 0x10003b5d
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe1c], 2
mov dword [ebp - 0xe30], 0
jmp 0x10003b7a
mov dword [ebp - 0xe28], 0
mov edi, 2
jmp 0x10003bc4
mov dword [ebp - 0xe2c], 0
mov dword [ebp - 0xe28], 0x1e
mov dword [ebp - 0xe24], 1
jmp 0x10003b39
mov dword [ebp - 0xe2c], 0
mov edx, 0x20
mov dword [ebp - 0xe24], 1
jmp 0x10003d61
mov ebx, 0xe
jmp 0x10003a7b