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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov esi, dword fs:[0x18]
sub esp, 0x424
mov edi, dword [ecx]
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]
sub esp, 0xc
mov dword [eax], 0xffffffff
mov ebx, eax
mov dword [eax + 0x4e8], 0
mov dword [eax + 0x4f0], 0
mov dword [eax + 0x4f4], 0
mov dword [eax + 0x4f8], 0
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], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebx], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x10003200
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._home_runner_build_wine_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._home_runner_build_wine_wine_dlls_itss_chm_lib.c:_chmFile.lzx_mutex
lea eax, [ebx + 0x34]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x408], 0x60
sub esp, 4
mov dword [eax + 0x18], str._home_runner_build_wine_wine_dlls_itss_chm_lib.c:_chmFile.cache_mutex
lea eax, [ebp - 0x330]
cmp dword [ebx], 0xffffffff
mov dword [ebp - 0x404], eax
je 0x10002e50
mov dword [esp + 8], 0x60
mov edx, eax
mov eax, ebx
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov dword [esp + 4], 0
call sym.__chm_fetch_bytes.part.0
mov ecx, edx
mov edx, dword [ebp - 0x408]
xor eax, edx
or ecx, eax
jne 0x10002e50
lea eax, [edx - 0x58]
and eax, 0xfffffff7
jne 0x10002e50
cmp edx, 3
jbe 0x10002a86
mov eax, dword [ebp - 0x404]
sub edx, 4
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x390], ecx
cmp edx, 3
jbe 0x10002a86
lea esi, [ebp - 0x408]
lea edi, [ebp - 0x404]
mov edx, esi
lea ecx, [ebp - 0x38c]
mov eax, edi
call sym.__unmarshal_int32.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 3
jbe 0x10002a86
mov edx, esi
lea ecx, [ebp - 0x388]
mov eax, edi
call sym.__unmarshal_int32.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 3
jbe 0x10002a86
mov edx, esi
lea ecx, [ebp - 0x384]
mov eax, edi
call sym.__unmarshal_int32.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 3
jbe 0x10002a86
mov edx, esi
lea ecx, [ebp - 0x380]
mov eax, edi
call sym.__unmarshal_uint32.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 3
jbe 0x10002a86
mov edx, esi
lea ecx, [ebp - 0x37c]
mov eax, edi
call sym.__unmarshal_uint32.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 0xf
jbe 0x10002a86
mov edx, esi
lea ecx, [ebp - 0x378]
mov eax, edi
call sym.__unmarshal_uuid.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 0xf
jbe 0x10002a86
mov edx, esi
lea ecx, [ebp - 0x368]
mov eax, edi
call sym.__unmarshal_uuid.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 7
jbe 0x10002b02
lea ecx, [ebp - 0x358]
lea edx, [ebp - 0x408]
lea eax, [ebp - 0x404]
call sym.__unmarshal_uint64.part.0
cmp dword [ebp - 0x408], 7
jbe 0x10002b02
lea ecx, [ebp - 0x350]
lea edx, [ebp - 0x408]
lea eax, [ebp - 0x404]
call sym.__unmarshal_uint64.part.0
cmp dword [ebp - 0x408], 7
jbe 0x10002b02
lea ecx, [ebp - 0x348]
lea edx, [ebp - 0x408]
lea eax, [ebp - 0x404]
call sym.__unmarshal_uint64.part.0
cmp dword [ebp - 0x408], 7
jbe 0x10002b02
lea ecx, [ebp - 0x340]
lea edx, [ebp - 0x408]
lea eax, [ebp - 0x404]
call sym.__unmarshal_uint64.part.0
cmp dword [ebp - 0x390], 0x46535449
jne 0x10002e50
mov eax, dword [ebp - 0x38c]
cmp eax, 2
je 0x10002ba0
cmp eax, 3
jne 0x10002e50
cmp dword [ebp - 0x388], 0x5f
jle 0x10002e50
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x10002e50
cmp eax, 7
jbe 0x10002b61
lea ecx, [ebp - 0x338]
lea edx, [ebp - 0x408]
lea eax, [ebp - 0x404]
call sym.__unmarshal_uint64.part.0
mov eax, dword [ebp - 0x348]
mov edx, dword [ebp - 0x344]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x40c], edx
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x414], edx
mov edx, dword [ebp - 0x334]
jmp 0x10002c01
cmp dword [ebp - 0x388], 0x57
jle 0x10002e50
mov eax, dword [ebp - 0x348]
mov edx, dword [ebp - 0x344]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x40c], edx
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x414], edx
add eax, dword [ebp - 0x418]
mov edx, dword [ebp - 0x40c]
adc edx, dword [ebp - 0x414]
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x334], edx
movq xmm0, qword [ebp - 0x410]
cmp dword [ebx], 0xffffffff
mov dword [ebx + 0x60], eax
lea eax, [ebp - 0x330]
mov dword [ebx + 0x64], edx
movhps xmm0, qword [ebp - 0x418]
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x408], 0x54
movups xmmword [ebx + 0x50], xmm0
je 0x10002e50
mov eax, dword [ebp - 0x410]
mov edx, dword [ebp - 0x40c]
mov dword [esp + 8], 0x54
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, ebx
mov dword [esp + 4], edx
lea edx, [ebp - 0x330]
call sym.__chm_fetch_bytes.part.0
mov ecx, dword [ebp - 0x408]
cmp ecx, 0x54
jne 0x10002e50
xor ecx, eax
or ecx, edx
jne 0x10002e50
mov eax, dword [ebp - 0x404]
lea esi, [ebp - 0x408]
lea edi, [ebp - 0x404]
lea ecx, [ebp - 0x3e0]
mov edx, dword [eax]
add eax, 4
mov dword [ebp - 0x408], 0x50
mov dword [ebp - 0x404], eax
mov eax, edi
mov dword [ebp - 0x3e4], edx
mov edx, esi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3dc]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3d8]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3d4]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3d0]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3cc]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3c8]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3c4]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3c0]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3bc]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3b8]
mov eax, edi
call sym.__unmarshal_int32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10002e30
lea ecx, [ebp - 0x3b4]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 0xf
jbe 0x10002e30
lea ecx, [ebp - 0x3b0]
mov eax, edi
call sym.__unmarshal_uuid.part.0
mov edx, dword [ebp - 0x408]
cmp edx, 0xf
jbe 0x10002e30
mov eax, dword [ebp - 0x404]
sub edx, 0x10
mov ecx, dword [eax]
add eax, 0x10
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3a0], ecx
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x39c], ecx
mov ecx, dword [eax - 8]
mov dword [ebp - 0x398], ecx
mov ecx, dword [eax - 4]
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x394], ecx
cmp dword [ebp - 0x3e4], 0x50535449
jne 0x10002e50
cmp dword [ebp - 0x3e0], 1
jne 0x10002e50
cmp dword [ebp - 0x3dc], 0x54
je 0x10002e70
nop
mov dword [esp], ebx
xor ebx, ebx
call sym._chm_close
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x3c8]
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3d4]
movdqu xmm0, xmmword [ebx + 0x50]
paddq xmm0, xmmword [0x10010250]
cmp eax, 0xffffffff
mov dword [ebx + 0x6c], edx
cmove eax, edx
mov dword [ebx + 0x70], ecx
movups xmmword [ebx + 0x50], xmm0
mov dword [ebx + 0x68], eax
mov eax, ebx
call sym._chm_set_param.part.0.constprop.0
lea eax, [ebx + 0x80]
mov dword [ebx + 0x4d8], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.::DataSpace_Storage_MSCompressed_Transform_7FC28940_9D31_11D0_9B27_00A0C91E9C7C_InstanceData_ResetTable
mov dword [esp], ebx
mov dword [ebp - 0x410], eax
call sym._chm_resolve_object
test eax, eax
jne 0x100031e0
cmp dword [ebx + 0x90], 1
je 0x100031e0
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 0x100031e0
cmp dword [ebx + 0x2a8], 1
je 0x100031e0
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 0x100031e0
cmp dword [ebp - 0x220], 1
je 0x100031e0
mov edx, dword [ebx + 0x4d8]
test edx, edx
je 0x10002e5a
lea eax, [ebp - 0x330]
mov dword [esp + 0x14], 0x28
mov dword [ebp - 0x404], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x410]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x408], 0x28
call sym._chm_retrieve_object
mov ecx, edx
mov edx, dword [ebp - 0x408]
xor eax, edx
or eax, ecx
jne 0x100031e0
cmp edx, 0x28
jne 0x100031e0
lea ecx, [ebx + 0x4b0]
mov edx, esi
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x10003052
lea ecx, [ebx + 0x4b4]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
lea ecx, [ebx + 0x4b8]
jbe 0x10003052
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
lea ecx, [ebx + 0x4bc]
jbe 0x10003052
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 7
jbe 0x10003052
lea ecx, [ebx + 0x4c0]
mov eax, edi
call sym.__unmarshal_uint64.part.0
cmp dword [ebp - 0x408], 7
lea ecx, [ebx + 0x4c8]
jbe 0x10003052
mov edx, esi
mov eax, edi
call sym.__unmarshal_uint64.part.0
cmp dword [ebp - 0x408], 7
lea ecx, [ebx + 0x4d0]
jbe 0x10003052
mov edx, esi
mov eax, edi
call sym.__unmarshal_uint64.part.0
cmp dword [ebx + 0x4b0], 2
jne 0x100031e0
mov eax, dword [ebx + 0x4d8]
test eax, eax
je 0x10002e5a
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x330]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [ebp - 0x408], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x230]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x404], edx
call sym._chm_retrieve_object
mov ecx, edx
mov edx, dword [ebp - 0x408]
xor eax, edx
or eax, ecx
jne 0x100031e0
cmp edx, 0x17
jbe 0x100031e0
lea ecx, [ebp - 0x400]
mov edx, esi
mov eax, edi
call sym.__unmarshal_uint32.part.0
mov eax, dword [ebp - 0x408]
cmp eax, 3
jbe 0x1000317c
mov edx, dword [ebp - 0x404]
sub eax, 4
mov ecx, dword [edx]
add edx, 4
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x3fc], ecx
cmp eax, 3
jbe 0x1000317c
lea ecx, [ebp - 0x3f8]
mov edx, esi
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x1000317c
lea ecx, [ebp - 0x3f4]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x1000317c
lea ecx, [ebp - 0x3f0]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 3
jbe 0x1000317c
lea ecx, [ebp - 0x3ec]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x408], 0x1b
jbe 0x1000317c
lea ecx, [ebp - 0x3e8]
mov eax, edi
call sym.__unmarshal_uint32.part.0
cmp dword [ebp - 0x3f8], 2
mov ecx, dword [ebp - 0x3f0]
jne 0x10003195
shl dword [ebp - 0x3f4], 0xf
shl ecx, 0xf
test ecx, ecx
je 0x100031e0
mov esi, dword [ebp - 0x3f4]
test esi, esi
je 0x100031e0
cmp ecx, 1
je 0x100031e0
mov edi, ecx
mov eax, esi
xor edx, edx
shr edi, 1
div edi
test edx, edx
jne 0x100031e0
cmp dword [ebp - 0x3fc], 0x43585a4c
jne 0x100031e0
imul eax, dword [ebp - 0x3ec]
mov dword [ebx + 0x4dc], ecx
mov dword [ebx + 0x4e0], esi
mov dword [ebx + 0x4e4], eax
jmp 0x10002e5a
mov dword [ebx + 0x4d8], 0
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
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 0x10002e5a