Function at 0x10008c40
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2c0
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x294], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x290], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x28c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x298], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x29c], eax
test byte [0x1000e038], 8
jne 0x10009088
mov eax, ebx
call sym._skip_schema
mov ebx, eax
test eax, eax
je 0x10009809
lea edx, [ebp - 0x278]
xor eax, eax
mov ecx, 0x14
mov dword [ebp - 0x27c], 0x54
mov edi, edx
lea esi, [ebp - 0x27c]
lea edx, [ebp - 0x288]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x28c]
mov eax, dword [edi]
mov dword [esp], edi
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call dword [eax + 0xc]
sub esp, 0xc
mov edi, eax
test eax, eax
js 0x10009040
mov dword [esp], esi
call sym._ReleaseBindInfo_4
sub esp, 4
cmp word [ebx], 0
je 0x100096a8
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x10008d10
sub eax, ebx
mov edx, eax
add eax, 6
sar edx, 1
add edx, 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [ebp - 0x284], edx
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]
mov esi, eax
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x284]
sub esp, 0xc
mov dword [esp + 4], ebx
add eax, eax
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._memcpy
lea eax, [ebp - 0x284]
mov dword [esp + 0xc], 0x100000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_UrlUnescapeW]
sub esp, 0x10
mov edi, eax
test eax, eax
js 0x10008fb8
mov eax, dword [ebp - 0x29c]
mov dword [esp + 4], 0x10010ee0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x1000988b
mov eax, dword [ebp - 0x298]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call sym._chm_openW
mov dword [ebp - 0x2a0], eax
test eax, eax
je 0x100098ed
mov eax, dword [ebp - 0x298]
lea edx, [eax + 4]
movzx eax, word [eax + 4]
mov dword [ebp - 0x28c], edx
test ax, ax
je 0x1000978a
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10008e10
sub edx, dword [ebp - 0x28c]
mov ebx, edx
sar ebx, 1
mov dword [ebp - 0x284], ebx
cmp ax, 0x2f
je 0x10009000
cmp ax, 0x5c
je 0x10009000
mov eax, dword [ebp - 0x298]
mov edi, dword [ebp - 0x28c]
add edx, 2
lea esi, [ebx + 1]
mov dword [esp + 8], edx
add eax, 6
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [ebp - 0x298]
mov edx, 0x2f
mov dword [ebp - 0x284], esi
mov word [eax + 4], dx
cmp word [edi + ebx*2], 0x2f
mov edx, 0x2f
jne 0x10008eac
mov ebx, esi
mov eax, dword [ebp - 0x28c]
sub ebx, 1
xor ecx, ecx
mov dword [ebp - 0x284], ebx
mov word [eax + ebx*2], cx
mov eax, dword [ebp - 0x298]
movzx eax, word [eax + 4]
mov edx, eax
test ax, ax
je 0x10008edc
mov eax, dword [ebp - 0x28c]
lea esi, [esi]
cmp dx, 0x5c
jne 0x10008ec6
mov edx, 0x2f
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x10008eb8
mov eax, dword [ebp - 0x298]
movzx eax, word [eax + 4]
mov esi, dword [ebp - 0x28c]
mov edi, dword [ebp - 0x298]
mov ebx, esi
add edi, 6
lea ecx, [esi + 2]
lea edx, [ebx + 2]
cmp ax, 0x2f
je 0x10008f19
mov word [ebx], ax
test ax, ax
je 0x10009180
movzx eax, word [esi + 2]
mov ebx, edx
mov esi, ecx
lea ecx, [esi + 2]
lea edx, [ebx + 2]
cmp ax, 0x2f
jne 0x10008ef9
mov eax, 0x2f
mov word [ebx], ax
movzx eax, word [esi + 2]
cmp ax, 0x2e
jne 0x10008fab
mov ebx, dword [ebp - 0x28c]
lea esi, [esi]
movzx eax, word [ecx + 2]
test ax, ax
je 0x100094b8
cmp ax, 0x2f
je 0x10009020
cmp ax, 0x2e
jne 0x100094a8
movzx eax, word [ecx + 4]
test ax, ax
je 0x10008f6c
cmp ax, 0x2f
jne 0x100094a8
add ecx, 6
cmp edx, edi
jbe 0x10008f94
cmp word [edx - 2], 0x2f
je 0x10009030
sub edx, 2
jmp 0x10008f94
cmp word [edx - 2], 0x2f
lea eax, [edx - 2]
je 0x10008fa2
mov edx, eax
cmp ebx, edx
jb 0x10008f88
cmp word [edx], 0x2f
je 0x10009948
movzx eax, word [ecx]
cmp ax, 0x2e
je 0x10008f38
mov ebx, edx
mov esi, ecx
jmp 0x10008eed
test byte [0x1000e038], 4
jne 0x100093d0
mov esi, dword [ebp - 0x29c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov esi, dword [ebp - 0x28c]
cmp word [esi + edx - 2], 0x2f
jne 0x10008ea5
jmp 0x10008e86
add ecx, 4
jmp 0x10008fa2
sub edx, 4
jmp 0x10008f94
test byte [0x1000e038], 4
je 0x10008fef
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.GetBindInfo_failed:__08lx_n
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 4], 0x1000e038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
test ebx, ebx
je 0x100096c0
mov eax, ebx
shr eax, 0x10
je 0x10009358
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x10010d07
sub esp, 8
test eax, eax
jne 0x1000936d
cmp word [ebx], 0
je 0x10009769
lea esi, [esi]
lea edi, [edi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x100090d0
mov ecx, 0x224c
lea eax, [ebp - 0x106]
mov dword [ebp - 0x2a4], ebx
mov esi, ebx
mov word [ebp - 0x228], cx
lea ecx, [ebp - 0x226]
mov dword [ebp - 0x2a0], eax
jmp 0x10009149
cmp ax, 9
je 0x10009418
cmp ax, 0xa
jne 0x10009436
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, dword [ebp - 0x2a0]
ja 0x100094c8
test edx, edx
jle 0x100094c8
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x10009400
jbe 0x10009108
cmp ax, 0x22
je 0x10009490
cmp ax, 0x5c
jne 0x10009429
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10009130
lea esi, [ebp - 0x228]
test byte [0x1000e038], 8
jne 0x10009508
xor eax, eax
mov ecx, 0x86
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call sym._chm_resolve_object
test eax, eax
jne 0x10009813
mov ebx, dword [ebp - 0x28c]
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov edi, dword [ebp - 0x290]
add eax, 2
mov edx, dword [edi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xb
mov dword [esp], edi
call dword [edx + 0x10]
lea eax, [ebp - 0x280]
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call sym._FindMimeFromData_32
mov ecx, dword [ebp - 0x29c]
sub esp, 0x20
mov ebx, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test ebx, ebx
js 0x1000929d
mov eax, dword [edi]
mov edx, dword [ebp - 0x280]
mov dword [esp + 4], 0xd
mov dword [esp], edi
mov dword [esp + 8], edx
call dword [eax + 0x10]
mov eax, dword [ebp - 0x280]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
mov eax, dword [ebp - 0x294]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100092b2
mov dword [esp], eax
call sym._chm_close
mov eax, dword [ebp - 0x294]
mov edi, dword [ebp - 0x2a0]
mov ecx, 0x86
mov dword [eax + 0x14], edi
lea edi, [eax + 0x1c]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x220]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x290]
mov edx, dword [esi]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 9
mov dword [esp], esi
call dword [edx + 0x14]
sub esp, 0x10
mov edi, eax
test eax, eax
js 0x10009650
mov esi, dword [ebp - 0x290]
mov eax, dword [esi]
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], esi
call dword [eax + 0x10]
sub esp, 0xc
mov edi, eax
mov eax, dword [esi]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call dword [eax + 0x18]
mov eax, edi
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
movzx eax, bx
mov dword [esp], 0x10010d11
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__p_____s__p__p__08lx__Ix__n
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x298]
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x28c]
mov dword [esp + 4], 0x1000e038
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x290]
mov dword [esp], 3
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x294]
sub eax, 4
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_2
jmp 0x10008c9d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.UrlUnescape_failed:__08lx_n
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 4], 0x1000e038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10008fc5
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10009130
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10009130
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10009698
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefITSProtocolInfo_QueryInfo]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefITSProtocolInfo_QueryInfo]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefITSProtocolInfo_QueryInfo]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefITSProtocolInfo_QueryInfo]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10009130
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10009130
movzx eax, word [ecx]
mov ebx, edx
mov esi, ecx
jmp 0x10008eed
lea esi, [ecx + 2]
mov ebx, edx
jmp 0x10008eed
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2a4]
test eax, eax
jle 0x10009782
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
lea esi, [ebp - 0x228]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x1000936d
mov eax, dword [ebp - 0x28c]
shr eax, 0x10
je 0x10009793
mov eax, dword [ebp - 0x28c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x10010d07
sub esp, 8
test eax, eax
jne 0x1000961f
mov esi, dword [ebp - 0x298]
cmp word [esi + 4], 0
je 0x100097e8
mov ecx, esi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 6], 0
jne 0x10009558
mov esi, 0x224c
lea ecx, [ebp - 0x226]
lea edi, [ebp - 0x106]
mov word [ebp - 0x228], si
mov esi, dword [ebp - 0x28c]
jmp 0x100095bd
cmp ax, 9
je 0x10009758
cmp ax, 0xa
jne 0x100096ee
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x100095f1
test edx, edx
jle 0x100095f1
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x100096d0
jbe 0x10009588
cmp ax, 0x22
je 0x10009740
cmp ax, 0x5c
jne 0x100096e1
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x100095b0
mov byte [ecx], 0x22
test eax, eax
jle 0x10009801
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
lea esi, [ebp - 0x228]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x10010f99
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 4], 0x1000e038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10009193
test byte [0x1000e038], 4
jne 0x100097b1
mov esi, dword [ebp - 0x294]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10009679
mov dword [esp], eax
call sym._chm_close
mov dword [esi + 0x14], 0
mov eax, dword [ebp - 0x294]
mov esi, dword [ebp - 0x290]
mov dword [eax + 0x10], 0
jmp 0x10009326
mov byte [ecx], al
add ecx, 1
jmp 0x10009130
mov eax, 6
mov edx, 3
jmp 0x10008d25
mov edx, 0x10010d00
jmp 0x1000936d
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x100095b0
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x100097de
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefITSProtocolInfo_QueryInfo]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefITSProtocolInfo_QueryInfo]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefITSProtocolInfo_QueryInfo]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefITSProtocolInfo_QueryInfo]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x100095b0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x100095b0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x100095b0
mov eax, 0x224c
mov byte [ebp - 0x226], 0x22
lea ecx, [ebp - 0x226]
mov word [ebp - 0x228], ax
lea eax, [ecx + 1]
jmp 0x100094e9
xor edx, edx
xor ebx, ebx
jmp 0x10008e3d
movzx eax, word [ebp - 0x28c]
mov dword [esp], 0x10010d11
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x1000961f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.ReportData_failed:__08lx_n
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 4], 0x1000e038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000965d
mov byte [ecx], al
add ecx, 1
jmp 0x100095b0
mov ebx, 0x224c
mov byte [ebp - 0x226], 0x22
lea ecx, [ebp - 0x226]
mov word [ebp - 0x228], bx
lea eax, [ecx + 1]
jmp 0x1000960c
mov edi, 0x800c0011
jmp 0x10008fef
test byte [0x1000e038], 4
jne 0x100098c4
mov esi, dword [ebp - 0x29c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x2a0]
sub esp, 0xc
mov dword [esp], eax
call sym._chm_close
mov esi, dword [ebp - 0x290]
mov edi, 0x80030002
mov eax, dword [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80030002
mov dword [esp], esi
call dword [eax + 0x18]
sub esp, 0x10
jmp 0x10008fef
test byte [0x1000e038], 4
jne 0x1000991f
mov esi, dword [ebp - 0x29c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
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 0x10009858
mov dword [esp + 0xc], str.Could_not_resolve_chm_object_n
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 4], 0x1000e038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10009820
test byte [0x1000e038], 4
je 0x10009898
mov dword [esp + 0xc], str.Could_not_open_chm_file_n
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 4], 0x1000e038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10009898
mov dword [esp + 0xc], str.invalid_url_n
mov dword [esp + 8], str.ITSProtocol_Start
mov dword [esp + 4], 0x1000e038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10009898
add edx, 2
jmp 0x10008fa2