Function at 0x6e918ec0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x6c
mov dword [ebp - 0x2c], eax
mov ecx, dword [ecx + 8]
cmp ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
jbe 0x6e918ef0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebx + 4], 1
je 0x6e918f10
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 2
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx]
mov eax, 1
lea esi, [edx - 0x20]
cmp esi, 2
jbe 0x6e918ee8
cmp edx, 0x40
ja case.0x6e918f24.0
jmp dword [edx*4 + 0x6e93720c]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x1b
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call dword [eax]
sub esp, 0x10
jmp 0x6e918ee8
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x24]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.6e8c6810
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
jmp 0x6e918f4b
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
jmp 0x6e918f4b
mov dword [ebp - 0x40], 0x1c
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x14]
add esi, eax
mov eax, dword [eax]
test eax, eax
je 0x6e918fd1
mov ecx, dword [ebp + 8]
add eax, ecx
cmp word [eax], 0
mov edx, eax
je 0x6e918fc9
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e918fc0
sub eax, edx
add eax, 0x1e
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x6e919005
mov edx, dword [ebp + 8]
add eax, edx
cmp word [eax], 0
mov edx, eax
je 0x6e918ff9
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e918ff0
mov edi, dword [ebp - 0x40]
sub eax, edx
lea eax, [edi + eax + 2]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x6e919031
mov edx, dword [ebp - 0x40]
shl ecx, 4
mov eax, esi
add ecx, esi
lea esi, [esi]
mov edi, dword [eax + 8]
add eax, 0x10
cmp ecx, eax
lea edx, [edx + edi + 0x10]
jne 0x6e919020
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x6e91930a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
shl eax, 4
lea edi, [edx + eax + 0x1c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
mov ecx, dword [eax]
test ecx, ecx
je 0x6e919265
mov dword [edx], edi
mov dword [ebp - 0x34], esi
mov ecx, dword [eax]
add ecx, eax
xor eax, eax
lea esi, [esi]
movzx esi, word [ecx + eax]
mov word [edi + eax], si
add eax, 2
test esi, esi
jne 0x6e919090
mov ecx, dword [edx]
mov esi, dword [ebp - 0x34]
cmp word [ecx], 0
mov eax, ecx
je 0x6e9190b9
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e9190b0
mov edi, dword [ebp - 0x3c]
sub eax, ecx
lea eax, [edi + eax + 2]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
test edi, edi
je 0x6e919270
mov dword [ebp - 0x34], esi
mov edi, dword [ebp - 0x3c]
mov dword [edx + 4], edi
mov ecx, dword [eax + 4]
add ecx, eax
xor eax, eax
lea esi, [esi]
lea edi, [edi]
movzx esi, word [ecx + eax]
mov word [edi + eax], si
add eax, 2
test esi, esi
jne 0x6e9190f0
mov ecx, dword [edx + 4]
mov esi, dword [ebp - 0x34]
cmp word [ecx], 0
mov eax, ecx
je 0x6e919119
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e919110
mov edi, dword [ebp - 0x3c]
sub eax, ecx
lea eax, [edi + eax + 2]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
test eax, eax
je 0x6e919210
mov dword [ebp - 0x34], 0
lea ecx, [edx + 0x1c]
mov eax, esi
mov dword [edx + 0x14], ecx
mov dword [ebp - 0x44], ebx
jmp 0x6e919188
mov ecx, dword [ebp - 0x38]
add eax, 0x10
rep movsb byte es:[edi], byte [esi]
inc dword [ebp - 0x34]
mov esi, dword [eax - 8]
add dword [ebp - 0x3c], esi
mov edi, dword [ebp - 0x34]
cmp edi, dword [edx + 0x10]
jae 0x6e91927c
mov ecx, dword [edx + 0x14]
mov ebx, dword [ebp - 0x34]
mov esi, dword [eax]
mov edi, dword [ebp + 8]
shl ebx, 4
mov dword [ecx + ebx], esi
mov esi, dword [eax + 0xc]
mov ecx, dword [edx + 0x14]
mov dword [ecx + ebx + 0xc], esi
mov esi, dword [eax + 8]
mov ecx, dword [edx + 0x14]
mov dword [ecx + ebx + 8], esi
mov esi, 0
mov ecx, dword [eax + 8]
test ecx, ecx
mov ecx, dword [edx + 0x14]
cmovne esi, dword [ebp - 0x3c]
mov dword [ecx + ebx + 4], esi
mov esi, dword [eax + 4]
mov ecx, dword [edx + 0x14]
add edi, esi
mov esi, edi
mov edi, dword [eax + 8]
mov ebx, dword [ecx + ebx + 4]
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x38], 8
mov edi, ebx
jb 0x6e919168
test bl, 1
jne 0x6e91932e
test edi, 2
jne 0x6e919318
test edi, 4
je 0x6e919168
mov ebx, dword [esi]
add edi, 4
add esi, 4
mov dword [edi - 4], ebx
sub dword [ebp - 0x38], 4
jmp 0x6e919168
mov dword [edx + 0x14], 0
test byte [0x6e928cd0], 8
jne 0x6e919281
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je case.0x6e918f24.0
mov dword [esp + 0xc], edx
mov dword [ebp - 0x34], edx
xor edx, edx
mov dword [esp + 8], edx
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call dword [eax]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
sub esp, 0x10
mov dword [esp], edx
call sym.crypt32.dll_CryptMemFree
mov eax, dword [ebp - 0x2c]
sub esp, 4
jmp 0x6e918ee8
mov dword [edx], 0
jmp 0x6e9190c5
mov dword [edx + 4], 0
jmp 0x6e919125
mov ebx, dword [ebp - 0x44]
jmp 0x6e919217
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x44], edx
mov esi, dword [edx + 0xc]
mov edi, dword [edx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
call fcn.6e918c90
mov edx, dword [ebp - 0x44]
mov esi, eax
mov eax, dword [edx]
call fcn.6e918c90
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x24], edi
mov edi, dword [ebp - 0x38]
mov dword [esp + 0x14], esi
mov esi, str._s__s__u__08x__u__p__u_n
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x3c]
mov dword [esp + 0x10], eax
mov eax, 0x6e928cd0
mov dword [esp + 4], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
mov edi, str.read_serialized_KeyProvInfoProperty
mov dword [esp + 8], edi
mov dword [esp], 3
call fcn.6e918190
mov edx, dword [ebp - 0x44]
jmp 0x6e919220
mov dword [edi + 0x34], 0xe
xor eax, eax
jmp 0x6e918ee8
movzx ebx, word [esi]
add edi, 2
add esi, 2
mov word [edi - 2], bx
sub dword [ebp - 0x38], 2
jmp 0x6e9191f0
movzx ecx, byte [esi]
inc edi
inc esi
mov byte [ebx], cl
dec dword [ebp - 0x38]
jmp 0x6e9191e4