Function at 0x407520
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

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, 0x144
mov eax, dword [0x41d008]
mov ebx, dword [ecx]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x4077ad
mov esi, dword [sym.imp.ucrtbase.dll_strcmp]
mov edi, eax
jmp 0x407567
mov edi, dword [edi + 0x44]
test edi, edi
je 0x407590
mov eax, dword [edi + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
test eax, eax
jne 0x407560
add dword [edi + 0x48], 1
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], ebx
mov dword [ebp - 0xc4], eax
call eax
mov dword [esp], 1
mov esi, eax
lea eax, [eax + 0xad]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov edi, eax
test eax, eax
je 0x4076ab
mov eax, dword [ebp - 0xb8]
lea edx, [edi + 0xac]
add esi, 1
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 8], edx
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._memcpy
mov eax, dword [ebp - 0xb8]
mov dword [0x41d008], edi
mov dword [eax + 0x40], edi
lea eax, [ebp - 0x98]
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_OpenFile]
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x40769e
lea eax, [ebp - 0xa8]
mov dword [esp + 8], 0x10
mov esi, dword [sym.imp.kernel32.dll__hread]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0xc
cmp eax, 0x10
jne 0x4076c0
movzx eax, byte [ebp - 0xa5]
movzx edx, byte [ebp - 0xa6]
movzx ecx, byte [ebp - 0xa8]
shl eax, 8
add eax, edx
movzx edx, byte [ebp - 0xa7]
shl eax, 0x10
shl edx, 8
add edx, ecx
movzx edx, dx
add edx, eax
cmp edx, 0x35f3f
je 0x4076ef
test byte [0x415010], 4
jne 0x4080b1
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll__lclose]
sub esp, 4
sub dword [edi + 0x48], 1
jne 0x4076ab
mov eax, edi
call sym._HLPFILE_FreeHlpFile.part.0
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [0x415010], 4
je 0x407692
mov dword [esp + 0xc], str.header_n
mov dword [esp + 8], str.HLPFILE_ReadFileToBuffer
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x407692
movzx edx, byte [ebp - 0x99]
movzx eax, byte [ebp - 0x9a]
movzx ecx, byte [ebp - 0x9c]
shl edx, 8
add edx, eax
movzx eax, byte [ebp - 0x9b]
shl edx, 0x10
shl eax, 8
add eax, ecx
movzx eax, ax
add edx, eax
lea eax, [edx + 1]
mov dword [edi + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xc8], eax
call eax
mov dword [edi], eax
test eax, eax
je 0x407692
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xb8]
add eax, 0x10
mov dword [eax - 0x10], ecx
mov ecx, dword [ebp - 0xa4]
sub edx, 0x10
mov dword [eax - 0xc], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [eax - 8], ecx
mov ecx, dword [ebp - 0x9c]
mov dword [eax - 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, dword [edi + 4]
sub esp, 0xc
sub eax, 0x10
cmp edx, eax
je 0x40781c
test byte [0x415010], 4
je 0x407692
mov dword [esp + 0xc], str.filesize1_n
jmp 0x4076d1
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], ebx
mov dword [ebp - 0xc4], eax
call eax
mov dword [esp], 1
mov esi, eax
lea eax, [eax + 0xad]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov edi, eax
test eax, eax
je 0x4076ab
lea eax, [edi + 0xac]
add esi, 1
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
mov dword [0x41d008], edi
jmp 0x407605
lea eax, [ebp - 0xac]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x407847
test byte [0x415010], 4
jne 0x409ed8
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov byte [edx + eax], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll__lclose]
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov dword [edi + 0xc], 0
sub esp, 4
mov edx, str.SYSTEM
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
je 0x40769e
mov eax, dword [ebp - 0xac]
movzx esi, byte [eax + 0xa]
movzx edx, byte [eax + 9]
movzx ebx, byte [eax + 0xc]
shl esi, 8
add esi, edx
movzx edx, byte [eax + 0xb]
shl ebx, 8
add ebx, edx
movzx edx, byte [eax + 0xe]
mov ecx, edx
movzx edx, byte [eax + 0xd]
shl ecx, 8
add ecx, edx
movzx edx, byte [eax + 0x14]
movzx eax, byte [eax + 0x13]
shl edx, 8
add edx, eax
test byte [0x415010], 8
jne 0x40847b
cmp si, 0x36c
jne 0x40807b
cmp cx, 1
jne 0x40807b
cmp bx, 0x10
ja 0x4080be
mov eax, 0x7f4
mov dword [edi + 0x58], 0
mov word [edi + 0x54], ax
mov eax, dword [ebp - 0xac]
mov word [edi + 0x4c], bx
add eax, 0x15
mov word [edi + 0x4e], dx
mov dword [edi + 0x50], 0x8000001
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__strdup]
mov dword [edi + 0xc], eax
test eax, eax
je 0x40769e
test byte [0x415010], 8
jne 0x409d1f
cmp word [edi + 0x4c], 0x10
ja 0x4079d7
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.TOMAP
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
jne 0x407997
test byte [0x415010], 4
je 0x40769e
mov dword [esp + 0xc], str.no_tomap_section_n
mov dword [esp + 8], str.HLPFILE_GetTOMap
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xc8]
sub ebx, esi
sub ebx, 9
mov dword [esp], ebx
call eax
mov dword [edi + 0x38], eax
test eax, eax
je 0x40769e
add esi, 9
mov dword [esp + 8], ebx
shr ebx, 2
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [edi + 0x34], ebx
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.Phrases
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
je 0x40870e
mov esi, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
movzx eax, byte [esi + 0xa]
movzx ecx, byte [esi + 9]
shl eax, 8
add eax, ecx
movzx ebx, ax
lea eax, [ebx + ebx]
mov dword [ebp - 0xc0], eax
add eax, 0x13
mov dword [ebp - 0xd0], eax
add eax, esi
cmp word [edi + 0x4c], 0x10
ja 0x4086d6
mov dword [edi + 0x64], ebx
cmp edx, eax
jbe 0x4086e1
mov dword [ebp - 0xbc], 0xd
sub edx, esi
lea eax, [edx - 0xf]
sub eax, dword [ebp - 0xc0]
mov dword [ebp - 0xcc], eax
lea eax, [ebx*4 + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0xc8]
call eax
mov ecx, dword [ebp - 0xcc]
mov dword [edi + 0x68], eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xc8]
mov dword [esp], ecx
call eax
mov edx, dword [ebp - 0xb8]
test eax, eax
mov dword [edi + 0x6c], eax
je 0x40a10a
test edx, edx
je 0x40a10a
mov ecx, dword [ebp - 0xbc]
mov eax, 0xfffffffe
sub eax, dword [ebp - 0xc0]
mov dword [ebp - 0xb8], eax
movzx eax, byte [esi + ecx + 1]
movzx ecx, byte [esi + ecx]
shl eax, 8
add eax, ecx
movzx eax, ax
add eax, dword [ebp - 0xb8]
mov dword [edx], eax
test ebx, ebx
je 0x407b17
mov ecx, dword [ebp - 0xbc]
mov edx, 1
add ecx, 2
lea esi, [esi]
mov esi, dword [ebp - 0xac]
movzx eax, byte [esi + ecx + 1]
movzx esi, byte [esi + ecx]
add ecx, 2
shl eax, 8
add eax, esi
mov esi, dword [edi + 0x68]
movzx eax, ax
add eax, dword [ebp - 0xb8]
mov dword [esi + edx*4], eax
mov eax, edx
add edx, 1
cmp eax, ebx
jne 0x407ae8
cmp word [edi + 0x4c], 0x10
mov ecx, dword [edi + 0x6c]
mov eax, dword [ebp - 0xac]
ja 0x408fdd
mov esi, dword [ebp - 0xc0]
mov dword [esp], ecx
lea eax, [eax + esi + 0xf]
mov esi, dword [ebp - 0xcc]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call sym._memcpy
mov dword [edi + 0x5c], 1
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.TOPIC
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
je 0x4086a0
mov ecx, dword [ebp - 0xac]
mov esi, dword [ebp - 0xa8]
lea eax, [ecx + 9]
mov edx, esi
sub edx, eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xac], eax
mov eax, edx
mov dword [ebp - 0xbc], edx
movzx edx, word [edi + 0x52]
sub eax, 1
mov ebx, edx
mov dword [ebp - 0xb8], edx
xor edx, edx
div ebx
lea ebx, [eax + 1]
mov dword [ebp - 0xc0], eax
mov eax, dword [edi + 0x58]
mov dword [edi + 0x78], ebx
test eax, eax
je 0x408f20
lea eax, [ebx*4]
mov dword [ebp - 0xd0], eax
test ebx, ebx
je 0x409e4c
lea ebx, [ecx + 0x4d]
lea eax, [esi - 0x44]
xor ecx, ecx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xbc], 0
mov edi, ecx
mov dword [ebp - 0xcc], eax
jmp 0x407c02
mov edi, eax
cmp esi, ebx
mov ecx, dword [ebp - 0xb8]
lea eax, [ebx - 0x44]
cmovb eax, dword [ebp - 0xcc]
lea edx, [eax + ecx]
cmp esi, edx
cmovb edx, esi
add eax, 0xc
call sym._HLPFILE_UncompressedLZ77_Size
add ebx, dword [ebp - 0xb8]
add dword [ebp - 0xbc], eax
lea eax, [edi + 1]
cmp edi, dword [ebp - 0xc0]
jne 0x407c00
mov edi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0xd0]
mov dword [esp], eax
mov eax, dword [ebp - 0xc8]
call eax
mov dword [edi + 0x70], eax
mov edx, eax
test eax, eax
je 0x40769e
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xbc]
xor ebx, ebx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xc0], edx
mov esi, edi
add ecx, edx
add eax, ecx
mov dword [edi + 0x74], eax
mov edi, ebx
mov eax, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0xd4]
jmp 0x407cbf
mov eax, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xac]
mov dword [ebp - 0xbc], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0xc0], eax
movzx eax, word [esi + 0x52]
imul eax, edi
add eax, ebx
lea edx, [eax + 0x44]
mov dword [ebp - 0xb8], edx
mov edx, dword [ebp - 0xbc]
cmp edx, dword [ebp - 0xb8]
lea ebx, [edx - 0x44]
mov edx, dword [ebp - 0xc0]
cmovb eax, ebx
mov dword [edx + edi*4], ecx
movzx edx, word [esi + 0x52]
mov ebx, dword [ebp - 0xa8]
add edx, eax
cmp ebx, edx
cmovb edx, ebx
add eax, 0xc
add edi, 1
call sym._HLPFILE_UncompressLZ77
mov ecx, eax
cmp edi, dword [esi + 0x78]
jb 0x407ca0
mov edi, esi
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.FONT
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
je 0x409110
mov eax, dword [ebp - 0xac]
lea edx, [eax + 9]
mov dword [ebp - 0xac], edx
movzx edx, byte [eax + 0xa]
movzx ecx, byte [eax + 9]
shl edx, 8
add edx, ecx
movzx ecx, dx
movzx edx, byte [eax + 0xc]
mov dword [ebp - 0xe0], ecx
movzx ecx, byte [eax + 0xb]
shl edx, 8
add edx, ecx
movzx ecx, dx
movzx edx, byte [eax + 0xe]
mov dword [ebp - 0xd8], ecx
movzx ecx, byte [eax + 0xd]
shl edx, 8
add edx, ecx
movzx ecx, dx
movzx edx, byte [eax + 0x10]
movzx eax, byte [eax + 0xf]
mov dword [ebp - 0xe8], ecx
shl edx, 8
add eax, edx
movzx esi, ax
test byte [0x415010], 8
jne 0x409b71
mov eax, dword [ebp - 0xd8]
mov dword [edi + 0x84], eax
imul eax, eax, 0x44
mov dword [esp], eax
mov eax, dword [ebp - 0xc8]
call eax
cmp dword [ebp - 0xe8], 0xf
mov dword [edi + 0x88], eax
mov ecx, eax
ja 0x409b28
cmp dword [ebp - 0xe8], 0xb
ja 0x409d51
mov eax, 0xa
mov edx, 5
mov dword [edi + 0xa4], eax
mov eax, dword [ebp - 0xd8]
mov dword [edi + 0xa8], edx
test eax, eax
je 0x409207
mov dword [ebp - 0xb8], 0
mov eax, esi
xor edx, edx
sub eax, dword [ebp - 0xe8]
div dword [ebp - 0xe0]
mov dword [ebp - 0x104], eax
nop
mov eax, dword [ebp - 0xac]
movzx ebx, byte [eax + esi + 2]
movzx edx, byte [eax + esi]
movzx eax, byte [eax + esi + 1]
mov byte [ebp - 0xbc], bl
lea ebx, [esi + 1]
mov dword [ebp - 0x100], ebx
imul ebx, dword [ebp - 0xb8], 0x44
mov byte [ebp - 0xd4], dl
mov dword [ecx + ebx], eax
mov eax, dword [edi + 0x88]
mov dword [eax + ebx + 4], 0
mov eax, dword [edi + 0x88]
mov dword [eax + ebx + 8], 0
mov eax, dword [edi + 0x88]
mov dword [eax + ebx + 0xc], 0
mov eax, edx
mov ecx, dword [edi + 0x88]
and eax, 1
cmp al, 1
mov byte [ebp - 0xea], al
sbb eax, eax
and eax, 0xfffffed4
add eax, 0x2bc
mov dword [ecx + ebx + 0x10], eax
mov eax, dword [edi + 0x88]
mov ecx, edx
and edx, 2
mov byte [ebp - 0xec], dl
mov edx, ecx
setne byte [eax + ebx + 0x14]
mov eax, dword [edi + 0x88]
and edx, 4
mov byte [ebp - 0xf0], dl
setne byte [eax + ebx + 0x15]
mov eax, dword [edi + 0x88]
and ecx, 8
mov byte [ebp - 0xf4], cl
setne byte [eax + ebx + 0x16]
mov eax, dword [edi + 0x88]
movzx ecx, word [edi + 0x50]
mov byte [eax + ebx + 0x17], cl
mov eax, dword [edi + 0x88]
mov byte [eax + ebx + 0x18], 0
mov eax, dword [edi + 0x88]
movzx ecx, byte [ebp - 0xbc]
mov byte [eax + ebx + 0x19], 0
mov eax, dword [edi + 0x88]
mov dword [ebp - 0xe4], ecx
mov byte [eax + ebx + 0x1a], 0
mov eax, dword [edi + 0x88]
mov byte [eax + ebx + 0x1b], 0
movzx eax, byte [0x415010]
mov byte [ebp - 0xbc], al
cmp cl, 5
ja case.0x407f3d.0
jmp dword [ecx*4 + 0x417398]
mov eax, dword [edi + 0x88]
add eax, ebx
or byte [eax + 0x1b], 0x50
mov ecx, dword [ebp - 0xac]
movzx eax, byte [ecx + esi + 4]
movzx edx, byte [ecx + esi + 3]
mov dword [ebp - 0xc0], ecx
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xe0], eax
ja 0x408617
test byte [ebp - 0xbc], 1
jne 0x408eca
mov eax, dword [edi + 0x88]
add eax, ebx
mov dword [eax + 0x1c], 0x766c6548
mov byte [eax + 0x20], 0
mov eax, dword [edi + 0x88]
mov edx, dword [ebp - 0xc0]
mov dword [eax + ebx + 0x3c], 0
lea eax, [edx + esi + 5]
mov ecx, eax
mov dword [ebp - 0xf8], eax
mov eax, edx
lea edx, [edx + esi + 6]
mov dword [ebp - 0xcc], edx
lea edx, [eax + esi + 7]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xfc], edx
movzx eax, byte [eax]
shl eax, 8
mov dword [ebp - 0xd0], eax
movzx eax, byte [edx]
movzx edx, byte [ecx]
shl eax, 0x10
or eax, dword [ebp - 0xd0]
or eax, edx
mov edx, dword [edi + 0x88]
mov dword [edx + ebx + 0x40], eax
test byte [ebp - 0xbc], 8
jne 0x4084d8
add dword [ebp - 0xb8], 1
add esi, 0xb
mov eax, dword [ebp - 0xb8]
cmp dword [ebp - 0xd8], eax
je 0x409207
mov ecx, dword [edi + 0x88]
jmp 0x407e20
mov eax, dword [edi + 0x88]
add eax, ebx
or byte [eax + 0x1b], 0x40
jmp 0x407f50
mov eax, dword [edi + 0x88]
add eax, ebx
or byte [eax + 0x1b], 0x20
jmp 0x407f50
mov eax, dword [edi + 0x88]
add eax, ebx
or byte [eax + 0x1b], 0x10
jmp 0x407f50
mov eax, dword [edi + 0x88]
add eax, ebx
or byte [eax + 0x1b], 0x30
jmp 0x407f50
test byte [0x415010], 4
je 0x40769e
mov dword [esp + 0xc], str.Wrong_system_header_n
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
mov dword [esp + 0xc], str.wrong_header_n
jmp 0x4076d1
test dx, dx
jne 0x408ff3
mov word [edi + 0x4c], bx
mov ebx, dword [ebp - 0xac]
mov dword [edi + 0x58], 0
mov dword [edi + 0x4e], 0x10000
lea esi, [ebx + 0x15]
mov dword [edi + 0x52], 0xff41000
add ebx, 0x19
cmp dword [ebp - 0xa8], ebx
jb 0x408155
mov dword [ebp - 0xb8], edi
lea esi, [esi]
movzx eax, byte [esi + 1]
shl eax, 8
mov edx, eax
movzx eax, byte [esi]
add eax, edx
cmp ax, 0xb
ja case.0x408117.0
movzx edx, ax
jmp dword [edx*4 + 0x4173b0]
test byte [0x415010], 4
jne 0x408467
lea esi, [esi]
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
shl eax, 8
add eax, edx
movzx eax, ax
lea esi, [esi + eax + 4]
lea ebx, [esi + 4]
cmp ebx, dword [ebp - 0xa8]
jbe 0x408100
mov edi, dword [ebp - 0xb8]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x407937
mov dword [esp], 0x4166f8
call dword [sym.imp.ucrtbase.dll__strdup]
mov dword [edi + 0xc], eax
jmp 0x407937
movzx edx, byte [esi + 4]
mov ecx, dword [ebp - 0xb8]
mov word [ecx + 0x50], dx
test byte [0x415010], 8
je 0x408130
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Charset:__d_n
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408130
test byte [0x415010], 4
je 0x408130
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], str.Citation:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 2
jmp 0x4081b2
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
shl eax, 8
add eax, edx
cmp ax, 0x5a
je 0x408a86
test byte [0x415010], 4
je 0x40813d
mov dword [esp + 0xc], str.system6_n
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
shl eax, 8
add eax, edx
jmp 0x40813d
movzx eax, byte [esi + 9]
movzx edx, byte [esi + 8]
shl eax, 8
add eax, edx
cmp ax, 1
je 0x408280
test byte [0x415010], 1
jne 0x408a5d
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x30000
mov dword [esp + 8], 1
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
shl eax, 8
add eax, edx
movzx eax, ax
sub eax, 0x16
mov dword [esp + 4], eax
lea eax, [esi + 0x1a]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CreateIconFromResourceEx]
mov ecx, dword [ebp - 0xb8]
sub esp, 0x1c
mov dword [ecx + 0x94], eax
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
shl eax, 8
add eax, edx
jmp 0x40813d
mov eax, dword [ebp - 0xc4]
mov dword [esp], ebx
call eax
mov edx, eax
lea eax, [eax + 9]
mov dword [ebp - 0xbc], edx
mov dword [esp], eax
mov eax, dword [ebp - 0xc8]
call eax
mov edx, dword [ebp - 0xbc]
test eax, eax
mov edi, eax
je 0x408130
lea ecx, [eax + 8]
add edx, 1
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0xbc], ecx
call sym._memcpy
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
mov dword [edi + 4], 0
mov eax, dword [eax + 0x1c]
mov dword [edi], ecx
test eax, eax
je 0x409136
lea esi, [esi]
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x408360
add edx, 4
mov dword [edx], edi
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
shl eax, 8
add eax, edx
jmp 0x40813d
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
movzx ecx, byte [0x415010]
shl eax, 8
add eax, edx
cmp ax, 4
je 0x40840b
and ecx, 4
je 0x40813d
mov dword [esp + 0xc], str.system3_n
jmp 0x40822c
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x408e22
test byte [0x415010], 4
je 0x408130
mov dword [esp + 0xc], str.copyright_n
jmp 0x40822c
mov eax, dword [ebp - 0xb8]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x408e76
test byte [0x415010], 4
je 0x408130
mov dword [esp + 0xc], str.title_n
jmp 0x40822c
movzx eax, byte [esi + 7]
movzx edx, byte [esi + 6]
movzx ebx, byte [esi + 4]
shl eax, 8
add eax, edx
movzx edx, byte [esi + 5]
shl eax, 0x10
shl edx, 8
add edx, ebx
mov ebx, dword [ebp - 0xb8]
movzx edx, dx
add eax, edx
and ecx, 8
mov dword [ebx + 0x3c], eax
je 0x408130
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Setting_contents_start_at__08lx_n
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
jmp 0x4081b2
movzx eax, ax
mov dword [esp + 0xc], str.Unsupported_SystemRecord__d__n
mov dword [esp + 0x10], eax
jmp 0x4081e0
movzx eax, dx
mov dword [esp + 0xc], str.Got_system_header:_magic_04x_version_d._d_flags_04x_n
mov dword [esp + 0x1c], eax
movzx eax, bx
mov dword [esp + 0x18], eax
movzx eax, cx
mov dword [esp + 0x14], eax
movzx eax, si
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], ecx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb8]
jmp 0x4078cf
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xfc]
add ebx, dword [edi + 0x88]
movzx eax, byte [eax + esi + 8]
movzx ecx, byte [ecx]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xcc]
shl eax, 0x10
movzx edx, byte [ecx]
mov ecx, dword [ebp - 0xf8]
movzx ecx, byte [ecx]
shl edx, 8
add edx, ecx
movzx edx, dx
add eax, edx
and eax, 0xffffff
mov dword [ebp - 0xbc], eax
lea eax, [ebx + 0x1c]
mov ebx, str._smallCaps
call sym._wine_dbgstr_an.constprop.0_1
mov edx, dword [ebp - 0x100]
mov ecx, eax
mov eax, dword [ebp - 0xac]
movzx edx, byte [eax + edx]
mov eax, 0x4166f8
mov dword [esp + 4], 0x415010
mov dword [esp], 3
mov dword [esp + 0x30], edx
movzx edx, byte [ebp - 0xd4]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0xe4]
test dl, 0x20
mov dword [esp + 0xc], str.Font__d_:_flags_02x_s_s_s_s_s_s_pSize_u_family_u_face_s__u__color_08x_n
cmove ebx, eax
and edx, 0x10
mov edx, str._dblUnderline
mov dword [esp + 0x34], ecx
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 0x2c], ebx
mov ebx, edx
mov edx, str._strikeOut
cmove ebx, eax
cmp byte [ebp - 0xf4], 0
cmove edx, eax
cmp byte [ebp - 0xf0], 0
mov dword [esp + 0x28], ebx
mov ebx, str._underline
cmove ebx, eax
cmp byte [ebp - 0xec], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebx
mov ebx, str._italic
cmove ebx, eax
cmp byte [ebp - 0xea], 0
mov dword [esp + 0x1c], ebx
mov ebx, str._bold
cmovne eax, ebx
mov ebx, dword [ebp - 0xbc]
mov dword [esp + 0x18], eax
movzx eax, byte [ebp - 0xd4]
mov dword [esp + 0x40], ebx
mov ebx, dword [ebp - 0xdc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xb8]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x408010
mov edx, dword [ebp - 0x104]
mov eax, 0x1f
cmp edx, 0x1f
cmovbe eax, edx
imul edx, dword [ebp - 0xdc]
add edx, dword [ebp - 0xe8]
mov dword [ebp - 0xcc], eax
mov eax, dword [edi + 0x88]
lea ecx, [eax + ebx]
mov dword [ebp - 0xf8], ecx
add ecx, 0x1c
mov dword [ebp - 0xfc], ecx
mov ecx, dword [ebp - 0xc0]
add ecx, edx
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
cmp edx, 4
jae 0x409035
test edx, edx
je 0x408690
movzx eax, byte [ecx]
mov ecx, dword [ebp - 0xf8]
mov byte [ecx + 0x1c], al
mov eax, edx
test al, 2
jne 0x40a080
mov eax, dword [edi + 0x88]
add eax, dword [ebp - 0xcc]
mov byte [ebx + eax + 0x1c], 0
jmp 0x407fa0
test byte [0x415010], 4
je 0x40769e
mov dword [esp + 0xc], str.topic0_n
mov dword [esp + 8], str.HLPFILE_Uncompress_Topic
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
mov dword [edi + 0x64], ebx
cmp edx, eax
ja 0x4091ed
test byte [0x415010], 4
je 0x40870e
mov dword [esp + 0xc], 0x41712d
mov dword [esp + 8], str.HLPFILE_UncompressLZ77_Phrases
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0xb4]
mov edx, str.PhrIndex
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
je 0x407b52
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.PhrImage
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
je 0x407b52
mov esi, dword [ebp - 0xb4]
movzx eax, byte [esi + 0x22]
movzx edx, byte [esi + 0x21]
shl eax, 8
add eax, edx
and edx, 0xf
mov word [ebp - 0xd8], ax
movzx eax, byte [esi + 0xe]
mov word [ebp - 0xc0], dx
movzx edx, byte [esi + 0xd]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xd4], eax
mov dword [edi + 0x64], eax
mov eax, esi
test byte [0x415010], 8
jne 0x409f1c
movzx edx, byte [eax + 0x18]
movzx ecx, byte [eax + 0x17]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 0x15]
mov ebx, edx
movzx edx, byte [eax + 0x16]
shl ebx, 0x10
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 0x1b]
movzx edx, dx
add ebx, edx
movzx edx, byte [eax + 0x1c]
mov dword [ebp - 0xe4], ebx
shl edx, 8
add ecx, edx
movzx edx, byte [eax + 0x1a]
movzx eax, byte [eax + 0x19]
shl ecx, 0x10
shl edx, 8
add eax, edx
movzx eax, ax
add eax, ecx
mov dword [ebp - 0xe8], eax
cmp eax, ebx
je 0x408845
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
lea ebx, [eax + 9]
mov dword [ebp - 0xb8], edx
mov eax, ebx
call sym._HLPFILE_UncompressedLZ77_Size
cmp eax, dword [ebp - 0xe4]
je 0x408845
test byte [0x415010], 4
mov edx, dword [ebp - 0xb8]
jne 0x40a0a7
mov eax, ebx
call sym._HLPFILE_UncompressedLZ77_Size
mov ecx, dword [ebp - 0xe4]
cmp ecx, eax
cmovge eax, ecx
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd4]
mov ebx, dword [ebp - 0xc8]
lea eax, [eax*4 + 4]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0xe4]
mov dword [edi + 0x68], eax
mov dword [ebp - 0xbc], eax
mov dword [esp], ecx
call ebx
mov edx, dword [ebp - 0xbc]
mov dword [edi + 0x6c], eax
mov ebx, eax
mov ecx, eax
mov eax, dword [ebp - 0xbc]
test edx, edx
je 0x40a12b
test ebx, ebx
je 0x40a12b
mov ebx, dword [ebp - 0xd4]
mov dword [eax], 0
lea edx, [esi + 0x21]
test ebx, ebx
je 0x409c08
movzx ecx, word [ebp - 0xc0]
mov eax, 1
xor esi, esi
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xb8], 0
shl eax, cl
movzx ecx, word [ebp - 0xd8]
mov dword [ebp - 0xe0], edi
mov edi, eax
and ecx, 0xe
mov word [ebp - 0xdc], cx
mov ecx, 1
jmp 0x4088fa
mov ebx, dword [edx]
test eax, ebx
je 0x408918
add ecx, edi
mov esi, eax
mov eax, esi
add eax, eax
jne 0x4088f0
mov ebx, dword [edx + 4]
lea eax, [edx + 4]
test bl, 1
je 0x408a3a
mov edx, eax
mov eax, 1
jmp 0x4088f6
movzx eax, word [ebp - 0xd8]
and eax, 0xc
shl esi, 2
mov word [ebp - 0xcc], ax
jne 0x40a0ed
mov ebx, dword [edx + 4]
lea eax, [edx + 4]
test bl, 1
je 0x408fbb
mov esi, 1
add ecx, 1
cmp word [ebp - 0xdc], 0
mov edx, eax
je 0x408973
add esi, esi
jne 0x409c52
lea edx, [eax + 4]
mov eax, dword [eax + 4]
test al, 1
je 0x409c3a
mov esi, 1
add ecx, 2
cmp word [ebp - 0xc0], 2
jbe 0x40899d
add esi, esi
jne 0x4091a6
mov eax, dword [edx + 4]
lea ebx, [edx + 4]
test al, 1
je 0x409bb6
mov edx, ebx
mov esi, 1
add ecx, 4
cmp word [ebp - 0xcc], 0
je 0x4089c7
add esi, esi
jne 0x4091de
mov eax, dword [edx + 4]
lea ebx, [edx + 4]
test al, 1
je 0x409bd0
mov edx, ebx
mov esi, 1
add ecx, 8
cmp word [ebp - 0xc0], 4
jbe 0x4089ec
add esi, esi
jne 0x409197
lea eax, [edx + 4]
test byte [edx + 4], 1
mov esi, 1
mov edx, eax
je 0x4089ec
add ecx, 0x10
movzx eax, cx
add dword [ebp - 0xb8], 1
mov ecx, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xb8]
add eax, dword [ebp - 0xd0]
mov dword [ecx + ebx*4], eax
cmp dword [ebp - 0xd4], ebx
je 0x409bff
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xb8]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xbc], eax
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xd0], eax
jmp 0x4088e8
mov esi, 2
movzx edx, word [ebp - 0xd8]
and edx, 0xc
mov word [ebp - 0xcc], dx
test esi, ebx
jne 0x408946
jmp 0x408949
mov dword [esp + 0xc], str.More_than_one_icon__picking_up_first_n
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x408280
mov ebx, dword [ebp - 0xb8]
mov eax, dword [ebx + 0x8c]
mov dword [ebp - 0xbc], eax
add eax, 1
mov dword [ebx + 0x8c], eax
imul eax, eax, 0x68
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x90]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebx + 0x90], eax
test eax, eax
je 0x408130
mov ecx, dword [ebp - 0xb8]
imul edx, dword [ecx + 0x8c], 0x68
lea edi, [eax + edx - 0x68]
movzx edx, byte [esi + 5]
movzx eax, byte [esi + 4]
shl edx, 8
lea ebx, [edx + eax]
and ax, 1
mov word [ebp - 0xd4], ax
jne 0x409bea
mov byte [edi], 0
mov eax, ebx
and ax, 2
mov word [ebp - 0xd8], ax
jne 0x409c59
mov byte [edi + 0xa], 0
mov eax, ebx
lea ecx, [edi + 0x13]
and ax, 4
mov dword [ebp - 0xd0], ecx
mov word [ebp - 0xdc], ax
je 0x409144
lea eax, [esi + 0x19]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [ebp - 0xbc], 0x80000000
mov eax, ebx
and ax, 8
mov word [ebp - 0xe0], ax
je 0x408b6a
movzx eax, byte [esi + 0x4d]
movzx edx, byte [esi + 0x4c]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], 0x80000000
mov eax, dword [ebp - 0xbc]
mov dword [edi + 0x48], eax
mov eax, ebx
and ax, 0x10
mov word [ebp - 0xe4], ax
je 0x408ba2
movzx eax, byte [esi + 0x4f]
movzx edx, byte [esi + 0x4e]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov ecx, 0x80000000
mov dword [edi + 0x4c], eax
mov eax, ebx
and ax, 0x20
mov word [ebp - 0xe8], ax
je 0x408bcf
movzx eax, byte [esi + 0x51]
movzx edx, byte [esi + 0x50]
shl eax, 8
add eax, edx
movzx ecx, ax
mov eax, ebx
mov dword [edi + 0x50], ecx
mov dword [ebp - 0xcc], 0x80000000
and ax, 0x40
mov word [ebp - 0xea], ax
je 0x408c01
movzx eax, byte [esi + 0x53]
movzx edx, byte [esi + 0x52]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov edx, ebx
and dx, 0x80
mov dword [edi + 0x54], eax
mov eax, 5
mov word [ebp - 0xec], dx
je 0x408c2f
movzx eax, byte [esi + 0x55]
movzx edx, byte [esi + 0x54]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [edi + 0x58], eax
mov eax, 0xffffff
mov dword [edi + 0x5c], 0xcf0000
test bh, 1
je 0x408c6f
movzx eax, byte [esi + 0x59]
movzx edx, byte [esi + 0x58]
shl eax, 8
add eax, edx
movzx edx, byte [esi + 0x56]
shl eax, 0x10
mov dword [ebp - 0xf0], eax
movzx eax, byte [esi + 0x57]
shl eax, 8
add eax, edx
movzx eax, ax
add eax, dword [ebp - 0xf0]
mov dword [edi + 0x60], eax
mov eax, 0xffffff
and bh, 2
je 0x408ca0
movzx eax, byte [esi + 0x5d]
movzx edx, byte [esi + 0x5c]
shl eax, 8
add eax, edx
movzx edx, byte [esi + 0x5a]
mov ebx, eax
movzx eax, byte [esi + 0x5b]
shl ebx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ebx
mov dword [edi + 0x64], eax
test byte [0x415010], 8
je 0x408130
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xf4], ecx
call sym._wine_dbgstr_an.constprop.0_1
mov dword [ebp - 0xd0], eax
lea eax, [edi + 0xa]
call sym._wine_dbgstr_an.constprop.0_1
mov dword [ebp - 0xf0], eax
mov eax, edi
call sym._wine_dbgstr_an.constprop.0_1
cmp word [ebp - 0xec], 1
sbb edx, edx
mov dword [esp + 0x30], eax
and edx, 0x20
add edx, 0x53
cmp word [ebp - 0xea], 1
sbb edi, edi
mov dword [esp + 0x2c], edx
and edi, 0x20
add edi, 0x48
cmp word [ebp - 0xe8], 1
sbb ecx, ecx
mov dword [esp + 0x28], edi
and ecx, 0x20
add ecx, 0x57
cmp word [ebp - 0xe4], 1
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp - 0xcc]
sbb ebx, ebx
and ebx, 0x20
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp - 0xf4]
add ebx, 0x59
cmp word [ebp - 0xe0], 1
mov dword [ebp - 0xe4], ebx
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp - 0xc0]
sbb eax, eax
and eax, 0x20
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0xbc]
add eax, 0x58
cmp word [ebp - 0xdc], 1
mov dword [ebp - 0xe0], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0xd0]
sbb ebx, ebx
and ebx, 0x20
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0xf0]
add ebx, 0x43
cmp word [ebp - 0xd8], 1
mov dword [ebp - 0xdc], ebx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0xe8]
sbb ebx, ebx
and ebx, 0x20
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0xe4]
add ebx, 0x4e
cmp word [ebp - 0xd4], 1
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0xe0]
sbb eax, eax
and eax, 0x20
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0xdc]
add eax, 0x54
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.System_Window:_flags_c_c_c_c_c_c_c_c_type_s_name_s_caption_s___ld__ld_x__ld__ld__n
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
shl eax, 8
add eax, edx
jmp 0x40813d
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__strdup]
mov ecx, dword [ebp - 0xb8]
mov dword [ecx + 0x10], eax
test eax, eax
je 0x40a0ff
test byte [0x415010], 8
je 0x408130
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], str.Copyright:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
jmp 0x4081b2
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__strdup]
mov ecx, dword [ebp - 0xb8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x40a0ff
test byte [0x415010], 8
je 0x408130
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], str.Title:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
jmp 0x4081b2
mov eax, dword [ebp - 0xe0]
mov dword [esp + 0xc], str.Too_high_face_ref___u__u__n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp + 4], 0x415010
mov dword [esp + 0x10], eax
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xc0], eax
movzx eax, byte [0x415010]
mov byte [ebp - 0xbc], al
jmp 0x407f8d
movzx edx, word [edi + 0x54]
lea eax, [edx + 4]
mov dword [ebp - 0xc0], edx
imul eax, ebx
mov dword [esp], eax
mov eax, dword [ebp - 0xc8]
call eax
mov dword [edi + 0x70], eax
test eax, eax
je 0x40769e
mov ecx, dword [ebp - 0xbc]
lea esi, [eax + ebx*4]
add ecx, esi
mov dword [edi + 0x74], ecx
test ebx, ebx
je 0x407d0d
mov dword [ebp - 0xb8], esi
mov edx, dword [ebp - 0xc0]
xor ebx, ebx
jmp 0x408f77
mov eax, dword [edi + 0x70]
movzx edx, word [edi + 0x54]
imul edx, ebx
add edx, dword [ebp - 0xb8]
mov dword [eax + ebx*4], edx
mov eax, dword [edi + 0x70]
mov esi, dword [ebp - 0xac]
movzx ecx, word [edi + 0x54]
mov edx, dword [eax + ebx*4]
movzx eax, word [edi + 0x52]
mov dword [esp + 8], ecx
imul eax, ebx
mov dword [esp], edx
add ebx, 1
lea eax, [esi + eax + 0xc]
mov dword [esp + 4], eax
call sym._memcpy
cmp ebx, dword [edi + 0x78]
jb 0x408f70
jmp 0x407d0d
cmp word [ebp - 0xdc], 0
je 0x4091b5
mov edx, eax
mov esi, 2
test esi, ebx
jne 0x408970
jmp 0x408973
mov edx, dword [ebp - 0xa8]
add eax, dword [ebp - 0xd0]
call sym._HLPFILE_UncompressLZ77
jmp 0x407b4b
cmp dx, 4
je 0x409e0c
mov eax, 0x800
mov dword [edi + 0x58], 1
mov word [edi + 0x52], ax
mov word [edi + 0x4c], bx
mov ebx, dword [ebp - 0xac]
mov eax, 0x4000
mov word [edi + 0x4e], dx
mov edx, 1
mov word [edi + 0x54], ax
lea esi, [ebx + 0x15]
mov word [edi + 0x50], dx
jmp 0x4080e9
mov edx, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xf8]
mov eax, dword [edx]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], edx
mov eax, dword [edx + ecx - 4]
mov edx, dword [ebp - 0xfc]
mov dword [edx + ecx - 4], eax
mov eax, dword [ebp - 0xf8]
lea edx, [eax + 0x20]
mov eax, dword [ebp - 0xfc]
and edx, 0xfffffffc
sub eax, edx
mov dword [ebp - 0xf8], edx
mov edx, dword [ebp - 0xd0]
sub edx, eax
add eax, ecx
and eax, 0xfffffffc
cmp eax, 4
jb 0x40868a
mov dword [ebp - 0xfc], ebx
and eax, 0xfffffffc
mov dword [ebp - 0xd0], eax
xor eax, eax
mov ebx, dword [edx + eax]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + eax], ebx
add eax, 4
cmp eax, dword [ebp - 0xd0]
jb 0x4090a1
mov ebx, dword [ebp - 0xfc]
jmp 0x40868a
test byte [ebp - 0xbc], 1
je 0x407f50
mov eax, dword [ebp - 0xe4]
mov dword [esp + 0xc], str.Unknown_family__u_n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x415010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x415010]
mov byte [ebp - 0xbc], al
jmp 0x407f50
test byte [0x415010], 4
jne 0x409e6e
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
jmp 0x40769e
mov eax, dword [ebp - 0xb8]
lea edx, [eax + 0x1c]
jmp 0x40836c
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xbc], esi
mov eax, dword [eax + 0xc]
lea ecx, [eax + 0x32]
mov esi, ecx
nop
movzx ecx, byte [eax]
test cl, cl
je 0x409174
add eax, 1
add edx, 1
mov byte [edx - 1], cl
cmp eax, esi
jne 0x409160
mov byte [edx], 0
mov esi, dword [ebp - 0xbc]
jmp 0x408b3b
cmp word [ebp - 0xc0], 4
jbe 0x409d13
mov edx, ebx
mov esi, 2
mov eax, dword [edx]
test esi, eax
jne 0x4089e9
jmp 0x4089ec
mov eax, dword [edx]
test esi, eax
jne 0x40899a
jmp 0x40899d
cmp word [ebp - 0xc0], 2
mov edx, eax
mov esi, 2
ja 0x4091a6
cmp word [ebp - 0xcc], 0
mov esi, 1
je 0x4089c7
mov esi, 2
mov eax, dword [edx]
test esi, eax
jne 0x4089c4
jmp 0x4089c7
call sym._HLPFILE_UncompressedLZ77_Size
mov dword [ebp - 0xbc], 0x11
mov dword [ebp - 0xcc], eax
jmp 0x407a5b
mov eax, 0xffffffff
mov dword [ebp - 0xbc], edi
movzx edx, word [edi + 0x4c]
mov dword [ebp - 0xd0], 0
mov edi, eax
mov dword [ebp - 0xc0], 0xc
jmp 0x4093a6
mov eax, dword [ebp - 0xbc]
xor edx, edx
movzx esi, word [eax + 0x54]
mov eax, ecx
div esi
mov dword [ebp - 0xb8], eax
mov ebx, edx
cmp eax, edi
je 0x409262
cmp edi, 0xffffffff
je 0x409262
mov dword [ebp - 0xc0], ecx
sub ebx, 0xc
test byte [0x415010], 8
jne 0x4093d9
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb8]
cmp dword [eax + 0x78], ecx
jbe 0x409c9f
mov ecx, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb8]
mov eax, dword [ecx + 0x70]
mov ecx, dword [ecx + 0x74]
add ebx, dword [eax + esi*4]
lea eax, [ebx + 0x15]
cmp ecx, eax
jbe 0x409cd7
movzx esi, byte [ebx + 3]
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 1]
shl esi, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add esi, eax
lea eax, [ebx + esi]
cmp ecx, eax
cmovb eax, ecx
cmp edi, dword [ebp - 0xb8]
mov dword [ebp - 0xcc], eax
mov eax, 0
cmove eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd0], eax
movzx eax, byte [ebx + 0x14]
cmp al, 2
je 0x409468
jbe 0x409420
cmp al, 0x20
je 0x409309
cmp al, 0x23
jne 0x409428
mov ecx, dword [ebp - 0xbc]
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x4097dc
lea edx, [ebx + 0x19]
cmp dword [ebp - 0xcc], edx
jb 0x4097a0
cmp al, 0x20
je 0x409814
mov ecx, dword [ebp - 0xcc]
cmp al, 0x23
sete al
sub ecx, ebx
sub ecx, 0xf
test al, al
jne 0x409814
add dword [ebp - 0xd0], ecx
mov eax, dword [ebp - 0xbc]
movzx ecx, byte [ebx + 0xe]
movzx edx, word [eax + 0x4c]
movzx eax, byte [ebx + 0xf]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebx + 0xd]
movzx ebx, byte [ebx + 0xc]
shl eax, 0x10
shl ecx, 8
add ecx, ebx
movzx ecx, cx
add ecx, eax
mov ebx, ecx
cmp dx, 0x10
ja 0x40939a
add ebx, dword [ebp - 0xc0]
cmp ebx, 0xffffffff
je 0x409930
test ecx, ecx
je 0x409930
mov dword [ebp - 0xc0], ebx
mov edi, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xc0]
lea ecx, [eax - 0xc]
cmp dx, 0x10
jbe 0x409238
mov eax, ecx
and ecx, 0x3fff
shr eax, 0xe
mov ebx, ecx
mov dword [ebp - 0xb8], eax
test byte [0x415010], 8
je 0x40926f
mov eax, dword [ebp - 0xb8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], str.ref_08lx_____u__u__n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp + 8], str.HLPFILE_DoReadHlpFile
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40926f
cmp al, 1
je 0x409309
test byte [0x415010], 2
je 0x40934f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.buf_0x14____x_n
mov dword [esp + 8], str.HLPFILE_DoReadHlpFile
mov dword [esp + 4], 0x415010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40934f
mov eax, dword [ebp - 0xbc]
cmp word [eax + 0x4c], 0x10
mov eax, dword [ebp - 0xb8]
ja 0x409505
mov ecx, dword [ebp - 0xc0]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xd8], eax
movzx eax, byte [ebx + 0x13]
movzx edx, byte [ebx + 0x12]
movzx ecx, byte [ebx + 0x10]
shl eax, 8
add edx, eax
movzx eax, byte [ebx + 0x11]
shl edx, 0x10
shl eax, 8
add eax, ecx
movzx eax, ax
add eax, edx
mov dword [ebp - 0xdc], eax
add eax, ebx
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xcc], eax
jae 0x409519
mov edi, dword [ebp - 0xbc]
test byte [0x415010], 4
je 0x40769e
mov dword [esp + 0xc], str.page2_n
mov dword [esp + 8], str.HLPFILE_AddPage
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
shl eax, 0xf
add eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], eax
jmp 0x409491
movzx eax, byte [ebx + 7]
movzx ecx, byte [ebx + 6]
movzx edi, byte [ebx + 4]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 5]
shl ecx, 0x10
shl eax, 8
add eax, edi
movzx eax, ax
add eax, ecx
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xd4], eax
add eax, 0x2d
mov dword [esp], eax
call ecx
mov edi, eax
test eax, eax
je 0x40a0f4
lea edx, [eax + 0x2c]
sub esi, dword [ebp - 0xdc]
mov dword [eax], edx
cmp esi, dword [ebp - 0xd4]
jae 0x409838
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x5c]
test eax, eax
jne 0x4098f9
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x60]
test eax, eax
jne 0x409c71
test byte [0x415010], 1
jne 0x409e21
mov eax, dword [ebp - 0xe0]
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._memcpy
mov dword [ebp - 0xd4], esi
mov edx, dword [edi]
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xbc]
mov byte [edx + eax], 0
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4098c6
mov eax, dword [ecx + 0x18]
mov dword [eax + 0x18], edi
mov eax, dword [ecx + 0x18]
mov dword [ecx + 0x18], edi
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0xbc]
mov dword [edi + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi + 0x28], ecx
mov dword [edi + 8], 0
movzx eax, byte [ebx + 0x24]
movzx edx, byte [ebx + 0x23]
movzx ecx, byte [ebx + 0x21]
shl eax, 8
add eax, edx
movzx edx, byte [ebx + 0x22]
shl eax, 0x10
shl edx, 8
add edx, ecx
movzx edx, dx
add eax, edx
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xd8]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc0]
mov dword [edi + 0x14], eax
movzx eax, byte [ebx + 0x1c]
movzx esi, byte [ebx + 0x1b]
movzx edx, byte [ebx + 0x19]
shl eax, 8
add esi, eax
mov eax, esi
movzx esi, byte [ebx + 0x1a]
shl eax, 0x10
shl esi, 8
add esi, edx
movzx esi, si
add esi, eax
mov dword [edi + 0x20], esi
movzx edx, byte [ebx + 0x20]
movzx eax, byte [ebx + 0x1f]
movzx ecx, byte [ebx + 0x1d]
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 0x1e]
shl edx, 0x10
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xbc]
movzx eax, ax
add edx, eax
cmp word [ecx + 0x4c], 0x10
mov dword [edi + 0x24], edx
ja 0x4096be
mov eax, 0xffffffff
cmp esi, 0xffff
je 0x4096a8
mov eax, dword [ecx + 0x38]
mov eax, dword [eax + esi*4]
mov dword [edi + 0x20], eax
cmp edx, 0xffff
jne 0x4098e5
mov dword [edi + 0x24], 0xffffffff
mov edx, dword [edi]
test byte [0x415010], 8
jne 0x409865
mov dword [esp], edx
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xcc], edx
call eax
mov edx, dword [ebp - 0xcc]
lea esi, [edx + eax + 1]
add edx, dword [ebp - 0xd4]
cmp esi, edx
jae 0x40934f
mov dword [ebp - 0xd8], ebx
jmp 0x40974b
lea eax, [ebx + 9]
add ebx, 1
mov dword [esp], eax
mov eax, dword [ebp - 0xc8]
call eax
mov ecx, eax
lea eax, [eax + 8]
mov dword [ecx], eax
mov dword [esp + 4], esi
add esi, ebx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [ebp - 0xcc], ecx
call sym._memcpy
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xcc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xd4]
add eax, dword [edi]
mov dword [edi + 4], ecx
cmp esi, eax
jae 0x409795
mov dword [esp], esi
mov eax, dword [ebp - 0xc4]
call eax
mov ebx, eax
test byte [0x415010], 8
je 0x409700
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], str.macro:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_AddPage
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x409700
mov ebx, dword [ebp - 0xd8]
jmp 0x40934f
mov edi, dword [ebp - 0xbc]
test byte [0x415010], 4
je 0x40769e
mov dword [esp + 0xc], str.header_too_small_n
mov dword [esp + 8], str.HLPFILE_SkipParagraph
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
mov edi, ecx
test byte [0x415010], 4
je 0x40769e
mov dword [esp + 0xc], str.no_page_n
mov dword [esp + 8], str.HLPFILE_SkipParagraph
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
lea eax, [ebx + 0x17]
test byte [ebx + 0x15], 1
cmove edx, eax
movzx ecx, byte [edx]
test cl, 1
je 0x409926
movzx ecx, word [edx]
shr cx, 1
movzx ecx, cx
jmp 0x409349
mov eax, dword [ebp - 0xd4]
mov dword [esp], edx
mov dword [ebp - 0xcc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], eax
call sym._memcpy
mov edx, dword [ebp - 0xcc]
jmp 0x4095bd
mov ecx, dword [edi + 0x20]
mov eax, edx
mov esi, dword [edi + 0x24]
mov dword [ebp - 0xcc], ecx
call sym._wine_dbgstr_an.constprop.0_1
mov ecx, dword [ebp - 0xd8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0xcc]
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], str.Added_page__d_:_title_s__08lx_____08x_____08lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_AddPage
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [edi]
jmp 0x4096cd
mov eax, dword [ebp - 0xbc]
movd xmm0, edi
mov dword [edi + 0x1c], 0
punpckldq xmm0, xmm0
movq qword [eax + 0x14], xmm0
jmp 0x4095e7
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + edx*4]
mov dword [edi + 0x24], eax
jmp 0x4096be
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xcc]
mov dword [esp], edx
add eax, edx
mov edx, dword [ebp - 0xe0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xbc]
call sym._HLPFILE_Uncompress2
mov edx, dword [edi]
jmp 0x4095bd
shr cl, 1
movzx ecx, cl
jmp 0x409830
mov edi, dword [ebp - 0xbc]
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.KWBTREE
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
je 0x4099c1
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xc8]
sub ebx, esi
mov dword [esp], ebx
call eax
mov dword [edi + 0x24], eax
test eax, eax
je 0x4099c1
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.KWDATA
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
jne 0x409d9a
test byte [0x415010], 2
jne 0x40a057
mov eax, dword [edi + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.CTXOMAP
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
jne 0x409a51
test byte [0x415010], 4
jne 0x409eaf
cmp word [edi + 0x4c], 0x10
jbe 0x40757b
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xac]
mov edx, str.CONTEXT
mov dword [esp], eax
mov eax, edi
call sym._HLPFILE_FindSubFile
test eax, eax
jne 0x409dd3
test byte [0x415010], 4
je 0x40769e
mov dword [esp + 0xc], str.context0_n
mov dword [esp + 8], str.HLPFILE_GetContext
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc8]
movzx eax, byte [esi + 0xa]
movzx edx, byte [esi + 9]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xbc], eax
shl eax, 3
mov dword [esp], eax
call ecx
mov dword [edi + 0x30], eax
mov ebx, eax
test eax, eax
je 0x4099ed
mov eax, dword [ebp - 0xbc]
mov dword [edi + 0x2c], eax
test eax, eax
je 0x4099ed
mov dword [ebp - 0xb8], 0
xor eax, eax
lea ecx, [esi + 0xb]
jmp 0x409aad
mov ebx, dword [edi + 0x30]
movzx edx, byte [ecx + eax + 3]
movzx esi, byte [ecx + eax + 2]
add dword [ebp - 0xb8], 1
shl edx, 8
add edx, esi
movzx esi, byte [ecx + eax + 1]
movzx ecx, byte [ecx + eax]
shl edx, 0x10
shl esi, 8
add ecx, esi
movzx ecx, cx
add edx, ecx
mov dword [ebx + eax], edx
mov ebx, dword [ebp - 0xac]
movzx edx, byte [ebx + eax + 0x12]
movzx esi, byte [ebx + eax + 0x11]
lea ecx, [ebx + 0xb]
shl edx, 8
add edx, esi
movzx esi, byte [ebx + eax + 0x10]
movzx ebx, byte [ebx + eax + 0xf]
shl edx, 0x10
shl esi, 8
add ebx, esi
mov esi, dword [edi + 0x30]
movzx ebx, bx
add edx, ebx
mov dword [esi + eax + 4], edx
mov esi, dword [ebp - 0xb8]
add eax, 8
cmp dword [ebp - 0xbc], esi
jne 0x409aaa
jmp 0x4099ed
mov eax, 1
xor edx, edx
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], edx
test byte [0x415010], 1
je 0x40769e
mov dword [esp + 0xc], str.mvb_font:_not_implemented_n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 4], 0x415010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
mov eax, dword [ebp - 0xd8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 0xc], str.Got_NumFacenames_u__u_NumDesc_u__u_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x407d9e
cmp word [ebp - 0xcc], 0
je 0x409182
mov edx, ebx
mov esi, 2
jmp 0x4091e0
cmp word [ebp - 0xc0], 4
jbe 0x409d13
mov edx, ebx
mov esi, 2
jmp 0x409199
lea eax, [esi + 6]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
jmp 0x408af8
mov edi, dword [ebp - 0xe0]
mov ecx, dword [edi + 0x6c]
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xe8]
add eax, 9
cmp dword [ebp - 0xe4], edx
je 0x409f01
mov edx, dword [ebp - 0xa8]
call sym._HLPFILE_UncompressLZ77
mov dword [edi + 0x60], 1
jmp 0x407b52
cmp word [ebp - 0xc0], 2
jbe 0x409e97
mov esi, 2
jmp 0x4091a8
mov ebx, dword [eax]
jmp 0x408fd0
lea eax, [esi + 0x10]
mov dword [esp + 4], eax
lea eax, [edi + 0xa]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
jmp 0x408b0f
mov eax, dword [ebp - 0xd4]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0xcc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp], eax
mov eax, dword [ebp - 0xbc]
call sym._HLPFILE_Uncompress3.isra.0
mov edx, dword [edi]
jmp 0x4095bd
mov edi, eax
test byte [0x415010], 4
je 0x409936
mov dword [esp + 0xc], str.maplen_n
mov dword [esp + 8], str.HLPFILE_DoReadHlpFile
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x409936
mov edi, dword [ebp - 0xbc]
test byte [0x415010], 4
je 0x409936
mov dword [esp + 0xc], str.extra_n
mov dword [esp + 8], str.HLPFILE_DoReadHlpFile
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x409936
mov edx, ebx
mov esi, 1
jmp 0x4089ec
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], str.Title:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x407937
mov eax, 1
xor edx, edx
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], edx
test byte [0x415010], 1
je 0x40769e
mov dword [esp + 0xc], str.new_font:_not_implemented_n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 4], 0x415010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40769e
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xc8]
sub ebx, esi
mov dword [esp], ebx
call eax
mov dword [edi + 0x28], eax
test eax, eax
je 0x4099c1
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
jmp 0x4099c1
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xc8]
sub ebx, esi
mov dword [esp], ebx
call eax
mov dword [edi + 0x20], eax
test eax, eax
je 0x40769e
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
jmp 0x40757b
mov eax, 0x1000
mov dword [edi + 0x58], 1
mov word [edi + 0x52], ax
jmp 0x40900d
mov dword [esp + 0xc], str.Text_size_is_too_long__splitting_n
mov dword [esp + 8], str.HLPFILE_AddPage
mov dword [esp + 4], 0x415010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [edi]
jmp 0x40959f
mov dword [esp], 0
mov eax, dword [ebp - 0xc8]
call eax
mov dword [edi + 0x70], eax
test eax, eax
je 0x40769e
mov dword [edi + 0x74], eax
jmp 0x407d0d
mov dword [esp + 0xc], str.no_subfile_FONT_n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x40911d
cmp word [ebp - 0xcc], 0
mov esi, 1
je 0x4089ec
jmp 0x4091d9
mov dword [esp + 0xc], str.no_map_section_n
mov dword [esp + 8], str.HLPFILE_GetMap
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x4099ed
mov dword [esp + 0xc], str.filesize2_n
mov dword [esp + 8], str.HLPFILE_ReadFileToBuffer
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x407847
mov esi, dword [ebp - 0xe4]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], esi
call sym._memcpy
jmp 0x409c2e
movzx eax, byte [esi + 0x24]
movzx edx, byte [esi + 0x23]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 0x22]
movzx edx, byte [esi + 0x21]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [esp + 0x28], eax
movzx ecx, byte [esi + 0x20]
movzx eax, byte [esi + 0x1f]
movzx edx, byte [esi + 0x1d]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1e]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ecx
mov dword [esp + 0x24], eax
movzx ecx, byte [esi + 0x1c]
movzx eax, byte [esi + 0x1b]
movzx edx, byte [esi + 0x19]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1a]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ecx
mov dword [esp + 0x20], eax
movzx ecx, byte [esi + 0x18]
movzx eax, byte [esi + 0x17]
movzx edx, byte [esi + 0x15]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x16]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ecx
mov dword [esp + 0x1c], eax
movzx ecx, byte [esi + 0x14]
movzx eax, byte [esi + 0x13]
movzx edx, byte [esi + 0x11]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x12]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ecx
mov dword [esp + 0x18], eax
movzx ecx, byte [esi + 0x10]
movzx eax, byte [esi + 0xf]
movzx edx, byte [esi + 0xd]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ecx
mov dword [esp + 0x14], eax
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xb]
movzx edx, byte [esi + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0xa]
mov dword [esp + 0xc], str.Index:_Magic_08x_entries_u_CpsdSize_u_PhrImgSize_u_n_tPhrImgCprsdSize_u_0_u_bc_x_ukn_x_n
shl ecx, 0x10
mov dword [esp + 8], str.HLPFILE_Uncompress_Phrases40
shl eax, 8
mov dword [esp + 4], 0x415010
add eax, edx
mov dword [esp], 3
movzx eax, ax
add eax, ecx
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0xb4]
jmp 0x4087a0
mov dword [esp + 0xc], str.corrupted_help_file:_kwbtree_present_but_kwdata_absent_n
mov dword [esp + 8], str.HLPFILE_GetKeywords
mov dword [esp + 4], 0x415010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4099b5
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xfc]
movzx eax, word [eax + ecx - 2]
mov word [edx + ecx - 2], ax
mov eax, dword [edi + 0x88]
jmp 0x408690
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp + 0xc], str.size_mismatch__u__u_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_Uncompress_Phrases40
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
lea ebx, [eax + 9]
jmp 0x40882d
mov eax, edx
jmp 0x408a3f
mov edi, dword [ebp - 0xbc]
jmp 0x40769e
mov edi, dword [ebp - 0xb8]
jmp 0x40769e
mov dword [ebp - 0xb8], eax
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edx
call ebx
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call ebx
jmp 0x40870e
mov dword [esp], eax
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
mov dword [esp], ebx
call esi
jmp 0x407b52