Function at 0x6f502710
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x43c
mov dword [esp + 8], 0x500
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [eax], 0xffffffff
mov ebx, eax
sub esp, 0xc
mov dword [eax + 0x4e8], 0
mov dword [eax + 0x4f0], 0
mov dword [eax + 0x4f4], 0
mov dword [eax + 0x4f8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebx], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x6f502f88
lea eax, [ebx + 4]
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_itss_chm_lib.c:_chmFile.mutex
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x1c]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_itss_chm_lib.c:_chmFile.lzx_mutex
lea eax, [ebx + 0x34]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x34]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_itss_chm_lib.c:_chmFile.cache_mutex
cmp dword [ebx], 0xffffffff
je 0x6f502a70
mov dword [esp + 8], 0x60
lea edx, [ebp - 0x330]
mov eax, ebx
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov dword [esp + 4], 0
call sym.__chm_fetch_bytes.part.0
xor eax, 0x60
or eax, edx
jne 0x6f502a70
mov eax, dword [ebp - 0x32c]
mov edx, dword [ebp - 0x32c]
xor ecx, ecx
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x38c], edx
mov edx, dword [ebp - 0x324]
mov dword [ebp - 0x390], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x384], edx
xor edx, edx
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x2f1]
mov dword [ebp - 0x410], ebx
lea esi, [esi]
movzx ebx, byte [eax]
mov esi, edx
mov edi, ecx
dec eax
shld edi, edx, 8
shl esi, 8
or ebx, esi
mov ecx, edi
lea edi, [ebp - 0x2f9]
mov edx, ebx
cmp eax, edi
jne 0x6f502918
mov ebx, dword [ebp - 0x410]
mov dword [ebp - 0x354], ecx
lea ecx, [ebp - 0x2f1]
lea eax, [ebp - 0x2e9]
mov dword [ebp - 0x358], edx
xor edx, edx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x410], ecx
xor ecx, ecx
lea esi, [esi]
movzx ebx, byte [eax]
mov esi, edx
mov edi, ecx
dec eax
shl esi, 8
shld edi, edx, 8
or ebx, esi
mov ecx, edi
mov edx, ebx
cmp eax, dword [ebp - 0x410]
jne 0x6f502968
mov ebx, dword [ebp - 0x418]
mov dword [ebp - 0x350], edx
lea ecx, [ebp - 0x2e9]
xor esi, esi
mov dword [ebp - 0x34c], edi
xor edi, edi
lea eax, [ebp - 0x2e1]
mov dword [ebp - 0x410], ecx
mov ecx, esi
mov dword [ebp - 0x424], ebx
mov ebx, edi
lea esi, [esi]
nop
movzx edx, byte [eax]
mov esi, ecx
mov edi, ebx
dec eax
shl esi, 8
shld edi, ecx, 8
or edx, esi
mov ebx, edi
mov ecx, edx
cmp eax, dword [ebp - 0x410]
jne 0x6f5029c0
lea ecx, [ebp - 0x2e1]
mov dword [ebp - 0x418], edx
xor esi, esi
lea eax, [ebp - 0x2d9]
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x344], edi
xor edi, edi
lea esi, [esi]
nop
movzx edx, byte [eax]
mov ecx, esi
mov ebx, edi
dec eax
shl ecx, 8
shld ebx, esi, 8
or edx, ecx
mov edi, ebx
mov esi, edx
cmp dword [ebp - 0x410], eax
jne 0x6f502a10
cmp dword [ebp - 0x390], 0x46535449
mov dword [ebp - 0x340], edx
mov dword [ebp - 0x33c], edi
mov ebx, dword [ebp - 0x424]
jne 0x6f502a70
cmp dword [ebp - 0x420], 2
je 0x6f502a88
cmp dword [ebp - 0x420], 3
jne 0x6f502a70
cmp dword [ebp - 0x428], 0x5f
jg 0x6f502fb0
lea esi, [esi]
mov dword [esp], ebx
xor ebx, ebx
call sym._chm_close
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x428], 0x57
jle 0x6f502a70
mov eax, dword [ebp - 0x418]
mov edx, dword [ebp - 0x414]
add eax, esi
adc edx, edi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x418]
mov edx, dword [ebp - 0x414]
mov dword [ebx + 0x58], esi
mov esi, dword [ebp - 0x410]
cmp dword [ebx], 0xffffffff
mov dword [ebx + 0x5c], edi
mov edi, dword [ebp - 0x40c]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], edi
je 0x6f502a70
mov dword [esp], eax
mov eax, ebx
mov dword [esp + 4], edx
lea edx, [ebp - 0x330]
mov dword [esp + 8], 0x54
mov dword [esp + 0xc], 0
call sym.__chm_fetch_bytes.part.0
xor eax, 0x54
or eax, edx
jne 0x6f502a70
mov eax, dword [ebp - 0x330]
mov edx, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x320]
mov esi, dword [ebp - 0x314]
mov dword [ebp - 0x3e4], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x3e0], edx
mov edx, dword [ebp - 0x324]
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x3d8], edx
mov edx, dword [ebp - 0x31c]
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x3d0], edx
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x3c8], edx
mov edx, dword [ebp - 0x30c]
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x3c0], edx
mov edx, dword [ebp - 0x304]
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x3b8], edx
mov edi, dword [ebp - 0x310]
mov dword [ebp - 0x3b4], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x3ac], eax
mov eax, dword [ebp - 0x2f4]
cmp dword [ebp - 0x32c], 1
mov dword [ebp - 0x3a8], eax
mov eax, dword [ebp - 0x2f0]
setne dl
cmp dword [ebp - 0x328], 0x54
mov dword [ebp - 0x3a4], eax
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x398], eax
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x394], eax
setne al
or dl, al
jne 0x6f502a70
cmp dword [ebp - 0x3e4], 0x50535449
jne 0x6f502a70
add dword [ebx + 0x50], 0x54
mov eax, ebx
adc dword [ebx + 0x54], 0
add dword [ebx + 0x58], 0xffffffac
adc dword [ebx + 0x5c], 0xffffffff
cmp esi, 0xffffffff
cmove esi, edi
mov dword [ebx + 0x6c], edi
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x68], esi
lea esi, [ebx + 0x80]
call sym._chm_set_param.part.0.constprop.0
mov dword [ebx + 0x4d8], 1
mov dword [esp + 8], esi
mov dword [esp + 4], str.::DataSpace_Storage_MSCompressed_Transform_7FC28940_9D31_11D0_9B27_00A0C91E9C7C_InstanceData_ResetTable
mov dword [esp], ebx
call sym._chm_resolve_object
test eax, eax
jne 0x6f502f70
cmp dword [ebx + 0x90], 1
je 0x6f502f70
lea eax, [ebx + 0x298]
mov dword [esp + 4], str.::DataSpace_Storage_MSCompressed_Content
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._chm_resolve_object
test eax, eax
jne 0x6f502f70
cmp dword [ebx + 0x2a8], 1
je 0x6f502f70
lea eax, [ebp - 0x230]
mov dword [esp + 4], str.::DataSpace_Storage_MSCompressed_ControlData
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._chm_resolve_object
test eax, eax
jne 0x6f502f70
cmp dword [ebp - 0x220], 1
je 0x6f502f70
mov eax, dword [ebx + 0x4d8]
test eax, eax
je 0x6f502a7a
lea eax, [ebp - 0x330]
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._chm_retrieve_object
xor eax, 0x28
or eax, edx
jne 0x6f502f70
mov eax, dword [ebp - 0x330]
lea ecx, [ebp - 0x321]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x418], eax
mov dword [ebx + 0x4b0], eax
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x420], ebx
mov dword [ebx + 0x4b4], eax
mov eax, dword [ebp - 0x328]
mov dword [ebx + 0x4b8], eax
mov eax, dword [ebp - 0x324]
mov dword [ebx + 0x4bc], eax
lea eax, [ebp - 0x319]
movzx edx, byte [eax]
mov ecx, esi
mov ebx, edi
dec eax
shl ecx, 8
shld ebx, esi, 8
or edx, ecx
mov edi, ebx
mov esi, edx
cmp eax, dword [ebp - 0x410]
jne 0x6f502daf
mov ebx, dword [ebp - 0x420]
lea eax, [ebp - 0x319]
lea ecx, [ebp - 0x311]
xor esi, esi
mov dword [ebp - 0x410], eax
mov dword [ebx + 0x4c0], edx
mov dword [ebx + 0x4c4], edi
xor edi, edi
lea esi, [esi]
movzx ebx, byte [ecx]
mov eax, esi
mov edx, edi
dec ecx
shl eax, 8
shld edx, esi, 8
or ebx, eax
mov edi, edx
mov esi, ebx
cmp ecx, dword [ebp - 0x410]
jne 0x6f502df8
mov ebx, dword [ebp - 0x420]
lea eax, [ebp - 0x311]
lea ecx, [ebp - 0x309]
xor edi, edi
mov dword [ebp - 0x410], eax
mov dword [ebx + 0x4cc], edx
mov dword [ebx + 0x4c8], esi
xor esi, esi
lea esi, [esi]
movzx ebx, byte [ecx]
mov eax, esi
mov edx, edi
dec ecx
shl eax, 8
shld edx, esi, 8
or ebx, eax
mov edi, edx
mov esi, ebx
cmp ecx, dword [ebp - 0x410]
jne 0x6f502e40
mov ebx, dword [ebp - 0x420]
cmp dword [ebp - 0x418], 2
mov dword [ebx + 0x4d0], esi
mov dword [ebx + 0x4d4], edx
jne 0x6f502f70
mov eax, dword [ebx + 0x4d8]
test eax, eax
je 0x6f502a7a
mov esi, dword [ebp - 0x228]
lea eax, [ebp - 0x330]
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x230]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._chm_retrieve_object
xor eax, esi
or eax, edx
jne 0x6f502f70
cmp esi, 0x17
jbe 0x6f502f70
mov eax, dword [ebp - 0x32c]
cmp dword [ebp - 0x328], 2
mov ecx, dword [ebp - 0x320]
mov edi, dword [ebp - 0x31c]
mov dword [ebp - 0x3fc], eax
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x3f4], eax
jne 0x6f502f14
shl eax, 0xf
shl ecx, 0xf
mov dword [ebp - 0x3f4], eax
test ecx, ecx
je 0x6f502f70
mov esi, dword [ebp - 0x3f4]
cmp ecx, 1
je 0x6f502f70
test esi, esi
je 0x6f502f70
mov eax, ecx
shr eax, 1
mov edx, eax
mov eax, esi
mov dword [ebp - 0x410], edx
xor edx, edx
div dword [ebp - 0x410]
test edx, edx
jne 0x6f502f70
cmp dword [ebp - 0x3fc], 0x43585a4c
jne 0x6f502f70
imul eax, edi
mov dword [ebx + 0x4dc], ecx
mov dword [ebx + 0x4e0], esi
mov dword [ebx + 0x4e4], eax
jmp 0x6f502a7a
mov dword [ebx + 0x4d8], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6f502a7a
mov dword [ebp - 0x420], esi
lea eax, [ebp - 0x2d9]
lea ecx, [ebp - 0x2d1]
xor edx, edx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x410], eax
xor eax, eax
mov dword [ebp - 0x41c], edi
mov edi, ecx
movzx esi, byte [edi]
mov ecx, eax
mov ebx, edx
dec edi
shl ecx, 8
shld ebx, eax, 8
or esi, ecx
mov edx, ebx
mov eax, esi
cmp edi, dword [ebp - 0x410]
jne 0x6f502fda
mov dword [ebp - 0x40c], ebx
mov esi, dword [ebp - 0x420]
mov dword [ebp - 0x410], eax
mov edi, dword [ebp - 0x41c]
mov dword [ebp - 0x338], eax
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 0x334], edx
jmp 0x6f502ab9