Function at 0x6f503030
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x234]
push ebx
sub esp, 0x67c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [edi + 0x70]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x66c], eax
mov eax, dword [ebp + 8]
sub esp, 0xc
mov edx, dword [eax + 0x6c]
lea eax, [ebp - 0x432]
lea esi, [esi]
movzx ecx, word [ebx]
test cx, cx
je 0x6f50309e
add eax, 2
add ebx, 2
mov word [eax - 2], cx
cmp eax, esi
jne 0x6f503088
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x432], 0
lea eax, [ebp - 0x432]
je 0x6f5034df
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6f5030c0
mov ecx, eax
lea ebx, [ebp - 0x432]
sub ecx, ebx
sar ecx, 1
mov dword [ebp - 0x664], ecx
cmp eax, ebx
je 0x6f503108
cmp word [ebp + ecx*2 - 0x434], 0x2f
je 0x6f503108
mov eax, 0x2f
mov word [ebp + ecx*2 - 0x432], ax
inc ecx
xor eax, eax
mov dword [ebp - 0x664], ecx
mov word [ebp + ecx*2 - 0x432], ax
xor edi, edi
mov word [ebp - 0x632], di
cmp edx, 0xffffffff
je 0x6f503431
mov dword [ebp - 0x660], 0xffffffff
lea ebx, [ebp - 0x632]
mov dword [ebp - 0x65c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
xor edi, edi
mov eax, dword [eax + 0x70]
cmp dword [ecx], 0xffffffff
mov esi, eax
je 0x6f5034b0
mov dword [esp + 0xc], edi
mov edi, edx
sar edi, 0x1f
mov dword [esp + 8], eax
mov ecx, edi
mov edi, dword [ebp + 8]
imul ecx, eax
mul edx
add edx, ecx
add eax, dword [edi + 0x50]
adc edx, dword [edi + 0x54]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x66c]
mov dword [esp], eax
mov eax, edi
call sym.__chm_fetch_bytes.part.0
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x70]
xor edi, edi
xor edx, edi
xor eax, esi
or edx, eax
jne 0x6f5034ee
mov eax, dword [ebp - 0x66c]
lea ecx, [ebp - 0x648]
lea edx, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x14
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x650]
call sym.__unmarshal_pmgl_header.part.0.constprop.0
mov edi, eax
test eax, eax
je 0x6f503472
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x66c]
add esi, dword [eax + 0x70]
sub esi, dword [ebp - 0x644]
mov dword [ebp - 0x668], esi
cmp esi, dword [ebp - 0x650]
ja 0x6f503288
jmp 0x6f50334c
mov eax, dword [ebp - 0x224]
or eax, dword [ebp - 0x228]
jne 0x6f503276
mov eax, dword [ebp - 0x664]
lea ecx, [ebp - 0x432]
lea edi, [ebp - 0x21c]
mov esi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], edi
call esi
test eax, eax
jne 0x6f503276
mov eax, dword [ebp - 0x664]
cmp word [ebp + eax*2 - 0x21c], 0
je 0x6f503330
cmp dword [ebp - 0x660], 0xffffffff
je 0x6f503360
mov eax, dword [ebp - 0x660]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
call esi
mov dword [ebp - 0x65c], 1
test eax, eax
jne 0x6f503360
mov eax, dword [ebp - 0x668]
cmp dword [ebp - 0x650], eax
jae 0x6f50334c
lea edx, [ebp - 0x230]
lea eax, [ebp - 0x650]
call sym.__chm_parse_PMGL_entry
test eax, eax
je 0x6f503470
mov esi, dword [ebp - 0x65c]
test esi, esi
je 0x6f5031f8
mov eax, dword [ebp - 0x664]
lea edi, [ebp - 0x21c]
mov esi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x432]
mov dword [esp + 4], eax
call esi
test eax, eax
je 0x6f503244
mov ebx, dword [ebp - 0x66c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [ebp - 0x65c]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ebp + 0x10], 0x10
jne 0x6f5033e2
lea esi, [esi]
mov dword [ebp - 0x65c], 1
mov eax, dword [ebp - 0x668]
cmp dword [ebp - 0x650], eax
jb 0x6f503288
mov edx, dword [ebp - 0x638]
cmp edx, 0xffffffff
jne 0x6f503134
jmp 0x6f503431
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x6f503368
cmp word [ebp - 0x632], 0
je 0x6f5034d0
mov esi, ebx
lea esi, [esi]
nop
add esi, 2
cmp word [esi], 0
jne 0x6f503390
sub esi, ebx
sar esi, 1
mov dword [ebp - 0x660], esi
movzx ecx, word [ebp - 0x21c]
test cx, cx
je 0x6f5034c0
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6f5033b8
sub eax, edi
sar eax, 1
dec eax
add eax, 8
cmp word [ebp + eax*2 - 0x22c], 0x2f
je 0x6f503320
test byte [ebp + 0x10], 8
je 0x6f503330
mov eax, 2
cmp cx, 0x2f
jne 0x6f503401
movzx eax, word [ebp - 0x21a]
sub eax, 0x23
cmp ax, 2
sbb eax, eax
and eax, 3
inc eax
test dword [ebp + 0x10], eax
je 0x6f503330
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
lea eax, [ebp - 0x230]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [ebp + 0x14]
test eax, eax
je 0x6f503470
cmp eax, 2
jne 0x6f503330
mov ebx, dword [ebp - 0x66c]
mov dword [esp + 4], 0
mov edi, 1
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, eax
mov ebx, dword [ebp - 0x66c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
jmp 0x6f503185
mov eax, 0xffffffff
jmp 0x6f5033c6
mov dword [ebp - 0x660], 0
jmp 0x6f5033a3
mov dword [ebp - 0x664], 0
jmp 0x6f503108
mov ebx, dword [ebp - 0x66c]
mov dword [esp + 4], 0
xor edi, edi
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6f50330c