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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov eax, dword [0x41b008]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x40738f
mov esi, dword [sym.imp.ucrtbase.dll_strcmp]
mov ebx, eax
jmp 0x407157
mov ebx, dword [ebx + 0x44]
test ebx, ebx
je 0x407178
mov eax, dword [ebx + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call esi
test eax, eax
jne 0x407150
add dword [ebx + 0x48], 1
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], edi
mov dword [ebp - 0xd8], 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 ebx, eax
test eax, eax
je 0x407292
mov ecx, dword [ebp - 0xcc]
lea eax, [ebx + 0xac]
add esi, 1
mov dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 8], eax
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x44], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0xcc]
mov dword [0x41b008], ebx
mov dword [ecx + 0x40], ebx
lea eax, [ebp - 0xa0]
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_OpenFile]
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x407285
lea eax, [ebp - 0xb0]
mov esi, dword [sym.imp.kernel32.dll__hread]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
sub esp, 0xc
cmp eax, 0x10
jne 0x4072a0
movzx eax, byte [ebp - 0xad]
movzx edx, byte [ebp - 0xae]
movzx ecx, byte [ebp - 0xb0]
shl eax, 8
add eax, edx
movzx edx, byte [ebp - 0xaf]
shl eax, 0x10
shl edx, 8
add edx, ecx
movzx edx, dx
add eax, edx
cmp eax, 0x35f3f
je 0x4072cf
test byte [0x415010], 4
jne 0x407c76
mov dword [esp], edi
call dword [sym.imp.kernel32.dll__lclose]
sub esp, 4
sub dword [ebx + 0x48], 1
jne 0x407292
mov eax, ebx
call fcn.00401ca0
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x415010], 4
je 0x407279
mov dword [esp + 0xc], str.header_n
mov dword [esp + 8], str.HLPFILE_ReadFileToBuffer
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
jmp 0x407279
movzx eax, byte [ebp - 0xa1]
movzx edx, byte [ebp - 0xa2]
shl eax, 8
add eax, edx
movzx edx, byte [ebp - 0xa3]
shl eax, 0x10
mov ecx, edx
movzx edx, byte [ebp - 0xa4]
shl ecx, 8
add edx, ecx
movzx edx, dx
add edx, eax
lea eax, [edx + 1]
mov dword [ebx + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xdc], eax
call eax
mov dword [ebx], eax
test eax, eax
je 0x407279
mov ecx, dword [ebp - 0xb0]
add eax, 0x10
mov edx, dword [ebp - 0xcc]
mov dword [eax - 0x10], ecx
mov ecx, dword [ebp - 0xac]
sub edx, 0x10
mov dword [eax - 0xc], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [eax - 8], ecx
mov ecx, dword [ebp - 0xa4]
mov dword [eax - 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
mov edx, eax
mov eax, dword [ebx + 4]
sub esp, 0xc
sub eax, 0x10
cmp edx, eax
je 0x4073fe
test byte [0x415010], 4
je 0x407279
mov dword [esp + 0xc], str.filesize1_n
jmp 0x4072b1
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], edi
mov dword [ebp - 0xd8], 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 ebx, eax
test eax, eax
je 0x407292
lea eax, [ebx + 0xac]
add esi, 1
mov dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 8], eax
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov dword [0x41b008], ebx
jmp 0x4071ed
lea eax, [ebp - 0xb4]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
sub esp, 0xc
test eax, eax
je 0x407429
test byte [0x415010], 4
jne 0x409a01
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov byte [edx + eax], 0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll__lclose]
lea eax, [ebp - 0xb0]
mov edx, str.SYSTEM
mov dword [ebx + 0xc], 0
lea ecx, [ebp - 0xb4]
sub esp, 4
mov dword [esp], eax
mov eax, ebx
call fcn.00402e00
test eax, eax
je 0x407285
mov ecx, dword [ebp - 0xb4]
movzx edi, byte [ecx + 0xa]
movzx eax, byte [ecx + 9]
movzx esi, byte [ecx + 0xc]
movzx edx, byte [ecx + 0xd]
shl edi, 8
add edi, eax
movzx eax, byte [ecx + 0xb]
shl esi, 8
add esi, eax
movzx eax, byte [ecx + 0xe]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 0x13]
mov word [ebp - 0xcc], ax
movzx eax, byte [ecx + 0x14]
shl eax, 8
add edx, eax
test byte [0x415010], 8
jne 0x40805b
cmp di, 0x36c
jne 0x407c40
cmp word [ebp - 0xcc], 1
jne 0x407c40
cmp si, 0x10
ja 0x407c83
mov word [ebx + 0x4c], si
lea eax, [ecx + 0x15]
mov esi, 0x7f4
mov dword [ebx + 0x58], 0
mov word [ebx + 0x4e], dx
mov dword [ebx + 0x50], 0x8000001
mov word [ebx + 0x54], si
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__strdup]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x407285
test byte [0x415010], 8
jne 0x4097d4
cmp word [ebx + 0x4c], 0x10
ja 0x4075be
lea eax, [ebp - 0xb0]
mov edx, str.TOMAP
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
jne 0x40757c
test byte [0x415010], 4
je 0x407285
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 fcn.00402130
jmp 0x407285
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
sub eax, esi
lea edi, [eax - 9]
mov eax, dword [ebp - 0xdc]
mov dword [esp], edi
call eax
mov dword [ebx + 0x38], eax
test eax, eax
je 0x407285
lea edx, [esi + 9]
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, edi
shr eax, 2
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0xb0]
mov edx, str.Phrases
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
je 0x4082c4
mov esi, dword [ebp - 0xb4]
movzx eax, byte [esi + 0xa]
mov dword [ebp - 0xe4], esi
shl eax, 8
mov edx, eax
movzx eax, byte [esi + 9]
add eax, edx
cmp word [ebx + 0x4c], 0x10
movzx edi, ax
lea eax, [edi + edi]
mov dword [ebp - 0xe8], eax
lea eax, [esi + eax + 0x13]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xd4], eax
ja 0x408282
mov esi, dword [ebp - 0xd4]
mov dword [ebx + 0x64], edi
cmp dword [ebp - 0xe0], esi
jae 0x408297
mov eax, dword [ebp - 0xd4]
mov esi, 0xd
sub eax, dword [ebp - 0xe4]
sub eax, 0xf
sub eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
lea eax, [edi*4 + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0xdc]
call eax
mov ecx, dword [ebp - 0xec]
mov dword [ebx + 0x68], eax
mov edi, eax
mov eax, dword [ebp - 0xdc]
mov dword [esp], ecx
call eax
mov dword [ebx + 0x6c], eax
test eax, eax
je 0x409bf2
test edi, edi
je 0x409bf2
mov ecx, dword [ebp - 0xe8]
mov eax, 0xfffffffe
sub eax, ecx
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xe4]
lea edx, [eax + esi + 1]
lea eax, [eax + ecx + 3]
xor ecx, ecx
add eax, esi
mov dword [ebp - 0xcc], eax
jmp 0x4076d3
mov edi, dword [ebx + 0x68]
movzx eax, byte [edx]
add edx, 2
movzx esi, byte [edx - 3]
shl eax, 8
add eax, esi
movzx eax, ax
add eax, dword [ebp - 0xd0]
mov dword [edi + ecx], eax
add ecx, 4
cmp dword [ebp - 0xcc], edx
jne 0x4076d0
cmp word [ebx + 0x4c], 0x10
mov ecx, dword [ebx + 0x6c]
ja 0x408b8c
mov esi, dword [ebp - 0xe8]
mov dword [esp], ecx
mov eax, dword [ebp - 0xe4]
lea eax, [eax + esi + 0xf]
mov esi, dword [ebp - 0xec]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call sub.ucrtbase.dll_memcpy
mov dword [ebx + 0x5c], 1
lea eax, [ebp - 0xb0]
mov edx, str.TOPIC
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
je 0x40824c
mov ecx, dword [ebp - 0xb4]
xor edx, edx
mov edi, dword [ebp - 0xb0]
lea eax, [ecx + 9]
mov esi, edi
mov dword [ebp - 0xd0], eax
sub esi, eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xcc], esi
mov eax, esi
movzx esi, word [ebx + 0x52]
sub eax, 1
div esi
lea edx, [eax + 1]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebx + 0x58]
mov dword [ebx + 0x78], edx
test eax, eax
je 0x408aca
lea eax, [edx*4]
mov dword [ebp - 0xe8], eax
test edx, edx
je 0x40995d
lea eax, [edi - 0x44]
add ecx, 0x4d
xor edx, edx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xcc], esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xe4], eax
jmp 0x4077e2
mov esi, eax
mov ecx, dword [ebp - 0xcc]
lea eax, [ebx - 0x44]
cmp edi, ebx
cmovb eax, dword [ebp - 0xe4]
lea edx, [eax + ecx]
cmp edi, edx
cmovbe edx, edi
add eax, 0xc
call fcn.00401a20
add ebx, dword [ebp - 0xcc]
add dword [ebp - 0xd4], eax
lea eax, [esi + 1]
cmp esi, dword [ebp - 0xe0]
jne 0x4077e0
mov eax, dword [ebp - 0xd4]
add eax, dword [ebp - 0xe8]
mov ebx, dword [ebp - 0xec]
mov esi, dword [ebp - 0xcc]
mov dword [esp], eax
mov eax, dword [ebp - 0xdc]
call eax
mov edx, eax
mov dword [ebx + 0x70], eax
test eax, eax
je 0x407285
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xd4]
add ecx, edx
add eax, ecx
mov dword [ebx + 0x74], eax
lea eax, [edi - 0x44]
mov dword [ebp - 0xd4], eax
mov eax, esi
mov esi, edi
xor edi, edi
jmp 0x407885
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0xcc], eax
movzx eax, word [ebx + 0x52]
imul eax, edi
add eax, dword [ebp - 0xd0]
lea edx, [eax + 0x44]
cmp esi, edx
mov edx, dword [ebp - 0xcc]
cmovb eax, dword [ebp - 0xd4]
mov dword [edx + edi*4], ecx
movzx edx, word [ebx + 0x52]
add edx, eax
cmp esi, edx
cmovbe edx, esi
add eax, 0xc
add edi, 1
call fcn.00401aa0
mov ecx, eax
cmp edi, dword [ebx + 0x78]
jb 0x407878
mov edx, str.FONT
lea eax, [ebp - 0xb0]
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
je 0x408c4a
mov edi, dword [ebp - 0xb4]
lea eax, [edi + 9]
mov dword [ebp - 0xb4], eax
movzx edx, byte [edi + 9]
mov dword [ebp - 0x10c], eax
movzx eax, byte [edi + 0xa]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0xb]
movzx eax, ax
mov dword [ebp - 0xec], eax
movzx eax, byte [edi + 0xc]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0xd]
movzx eax, ax
mov dword [ebp - 0xe4], eax
movzx eax, byte [edi + 0xe]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xf4], eax
movzx eax, byte [edi + 0x10]
shl eax, 8
mov edx, eax
movzx eax, byte [edi + 0xf]
add eax, edx
movzx eax, ax
mov dword [ebp - 0xcc], eax
test byte [0x415010], 8
jne 0x40969b
mov eax, dword [ebp - 0xe4]
mov dword [ebx + 0x84], eax
imul eax, eax, 0x44
mov dword [esp], eax
mov eax, dword [ebp - 0xdc]
call eax
cmp dword [ebp - 0xf4], 0xf
mov esi, eax
mov dword [ebx + 0x88], eax
ja 0x409651
cmp dword [ebp - 0xf4], 0xb
ja 0x409876
mov dword [ebx + 0xa4], 0xa
mov eax, dword [ebp - 0xe4]
mov dword [ebx + 0xa8], 5
test eax, eax
je 0x408d4b
mov ecx, dword [ebp - 0xcc]
xor edx, edx
mov dword [ebp - 0xcc], 0
mov eax, ecx
sub eax, dword [ebp - 0xf4]
add edi, ecx
mov dword [ebp - 0xd0], edi
div dword [ebp - 0xec]
mov dword [ebp - 0x114], eax
mov edi, dword [ebp - 0x114]
mov eax, 0x1f
mov ecx, eax
cmp edi, eax
cmovbe ecx, edi
lea eax, [ecx - 1]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x118], eax
lea esi, [esi]
mov edi, dword [ebp - 0xd0]
imul edx, dword [ebp - 0xcc], 0x44
movzx eax, byte [edi + 0xb]
movzx ecx, byte [edi + 9]
mov byte [ebp - 0xe0], al
movzx eax, byte [edi + 0xa]
mov byte [ebp - 0xd4], cl
mov dword [esi + edx], eax
mov eax, dword [ebx + 0x88]
mov dword [eax + edx + 4], 0
mov eax, dword [ebx + 0x88]
mov dword [eax + edx + 8], 0
mov eax, dword [ebx + 0x88]
mov dword [eax + edx + 0xc], 0
mov eax, ecx
mov esi, dword [ebx + 0x88]
and eax, 1
cmp al, 1
mov byte [ebp - 0xf8], al
sbb eax, eax
and eax, 0xfffffed4
add eax, 0x2bc
and ecx, 2
mov dword [esi + edx + 0x10], eax
mov eax, dword [ebx + 0x88]
mov byte [ebp - 0xfc], cl
movzx ecx, byte [ebp - 0xd4]
setne byte [eax + edx + 0x14]
mov eax, dword [ebx + 0x88]
and ecx, 4
mov byte [ebp - 0x100], cl
movzx ecx, byte [ebp - 0xd4]
setne byte [eax + edx + 0x15]
mov eax, dword [ebx + 0x88]
and ecx, 8
mov byte [ebp - 0x102], cl
setne byte [eax + edx + 0x16]
movzx eax, word [ebx + 0x50]
mov esi, dword [ebx + 0x88]
mov byte [esi + edx + 0x17], al
mov eax, dword [ebx + 0x88]
mov byte [eax + edx + 0x18], 0
mov eax, dword [ebx + 0x88]
mov byte [eax + edx + 0x19], 0
mov eax, dword [ebx + 0x88]
mov byte [eax + edx + 0x1a], 0
mov eax, dword [ebx + 0x88]
mov byte [eax + edx + 0x1b], 0
movzx eax, byte [ebp - 0xe0]
mov ecx, eax
mov dword [ebp - 0xf0], eax
movzx eax, byte [0x415010]
mov byte [ebp - 0xe0], al
cmp cl, 5
ja case.0x407b2e.0
jmp dword [ecx*4 + 0x417398]
mov ecx, dword [ebx + 0x88]
add ecx, edx
or byte [ecx + 0x1b], 0x50
lea esi, [esi]
mov esi, dword [ebp - 0xd0]
movzx ecx, byte [esi + 0xd]
movzx esi, byte [esi + 0xc]
shl ecx, 8
add ecx, esi
movzx ecx, cx
mov dword [ebp - 0xe8], ecx
cmp dword [ebp - 0xec], ecx
ja 0x4081e7
test byte [ebp - 0xe0], 1
jne 0x408a74
mov ecx, dword [ebx + 0x88]
add ecx, edx
mov dword [ecx + 0x1c], 0x766c6548
mov byte [ecx + 0x20], 0
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebp - 0xd0]
mov dword [ecx + edx + 0x3c], 0
mov esi, dword [ebx + 0x88]
movzx ecx, byte [eax + 0xf]
movzx edi, byte [eax + 0x10]
shl ecx, 8
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 0xe]
or ecx, edi
mov dword [esi + edx + 0x40], ecx
test byte [ebp - 0xe0], 8
jne 0x4080bc
add dword [ebp - 0xcc], 1
add dword [ebp - 0xd0], 0xb
mov eax, dword [ebp - 0xcc]
cmp dword [ebp - 0xe4], eax
je 0x408d4b
mov esi, dword [ebx + 0x88]
jmp 0x407a10
mov ecx, dword [ebx + 0x88]
add ecx, edx
or byte [ecx + 0x1b], 0x40
jmp 0x407b48
mov ecx, dword [ebx + 0x88]
add ecx, edx
or byte [ecx + 0x1b], 0x20
jmp 0x407b48
mov ecx, dword [ebx + 0x88]
add ecx, edx
or byte [ecx + 0x1b], 0x10
jmp 0x407b48
mov ecx, dword [ebx + 0x88]
add ecx, edx
or byte [ecx + 0x1b], 0x30
jmp 0x407b48
test byte [0x415010], 4
je 0x407285
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 fcn.00402130
jmp 0x407285
mov dword [esp + 0xc], str.wrong_header_n
jmp 0x4072b1
test dx, dx
je 0x408ba2
mov edi, 0x800
cmp dx, 4
mov eax, 0x1000
mov dword [ebx + 0x58], 1
cmovne eax, edi
mov word [ebx + 0x4c], si
mov word [ebx + 0x4e], dx
mov word [ebx + 0x52], ax
lea edi, [ecx + 0x15]
mov eax, 0x4000
mov word [ebx + 0x54], ax
mov eax, 1
mov word [ebx + 0x50], ax
mov eax, dword [ebp - 0xb0]
add ecx, 0x19
mov dword [ebp - 0xcc], eax
cmp ecx, eax
ja 0x407d35
mov dword [ebp - 0xd0], ebx
mov ebx, ecx
movzx edx, byte [edi + 1]
movzx eax, byte [edi]
shl edx, 8
add eax, edx
cmp ax, 0xb
ja case.0x407cf5.0
movzx edx, ax
jmp dword [edx*4 + 0x4173b0]
test byte [0x415010], 4
jne 0x408047
lea esi, [esi]
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, edx
movzx eax, ax
lea edi, [edi + eax + 4]
lea ebx, [edi + 4]
cmp ebx, dword [ebp - 0xcc]
jbe 0x407ce0
mov ebx, dword [ebp - 0xd0]
mov edi, dword [ebx + 0xc]
test edi, edi
jne 0x40751c
mov dword [esp], 0x4166f8
call dword [sym.imp.ucrtbase.dll__strdup]
mov dword [ebx + 0xc], eax
jmp 0x40751c
movzx edx, byte [edi + 4]
mov ecx, dword [ebp - 0xd0]
mov word [ecx + 0x50], dx
test byte [0x415010], 8
je 0x407d10
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 fcn.00402130
jmp 0x407d10
test byte [0x415010], 4
je 0x407d10
mov eax, ebx
call fcn.00401ea0
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 0x407d92
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, edx
cmp ax, 0x5a
je 0x408630
test byte [0x415010], 4
je 0x407d1d
mov dword [esp + 0xc], str.system6_n
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, edx
jmp 0x407d1d
movzx eax, byte [edi + 9]
movzx edx, byte [edi + 8]
shl eax, 8
add eax, edx
cmp ax, 1
je 0x407e60
test byte [0x415010], 1
jne 0x408607
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 [edi + 3]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, edx
movzx eax, ax
sub eax, 0x16
mov dword [esp + 4], eax
lea eax, [edi + 0x1a]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CreateIconFromResourceEx]
mov esi, dword [ebp - 0xd0]
sub esp, 0x1c
mov dword [esi + 0x94], eax
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, edx
jmp 0x407d1d
mov eax, dword [ebp - 0xd8]
mov dword [esp], ebx
call eax
mov edx, eax
lea eax, [eax + 9]
mov dword [ebp - 0xd4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0xdc]
call eax
mov edx, dword [ebp - 0xd4]
test eax, eax
mov esi, eax
je 0x407d10
lea ecx, [eax + 8]
add edx, 1
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0xd4], ecx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0xd0]
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xd4]
mov eax, dword [eax + 0x1c]
mov dword [esi], ecx
test eax, eax
je 0x408c70
lea esi, [esi]
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x407f40
add edx, 4
mov dword [edx], esi
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, edx
jmp 0x407d1d
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 2]
movzx ecx, byte [0x415010]
shl eax, 8
add eax, edx
cmp ax, 4
je 0x407feb
and ecx, 4
je 0x407d1d
mov dword [esp + 0xc], str.system3_n
jmp 0x407e0c
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4089cc
test byte [0x415010], 4
je 0x407d10
mov dword [esp + 0xc], str.copyright_n
jmp 0x407e0c
mov eax, dword [ebp - 0xd0]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x408a20
test byte [0x415010], 4
je 0x407d10
mov dword [esp + 0xc], str.title_n
jmp 0x407e0c
movzx eax, byte [edi + 7]
movzx edx, byte [edi + 6]
movzx ebx, byte [edi + 4]
mov esi, dword [ebp - 0xd0]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 5]
shl eax, 0x10
shl edx, 8
add edx, ebx
movzx edx, dx
add eax, edx
and ecx, 8
mov dword [esi + 0x3c], eax
je 0x407d10
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 0x407d92
movzx eax, ax
mov dword [esp + 0xc], str.Unsupported_SystemRecord__d__n
mov dword [esp + 0x10], eax
jmp 0x407dc0
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, si
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0xcc]
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
mov dword [esp + 0x14], eax
movzx eax, di
mov dword [esp + 0x10], eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], edx
call fcn.00402130
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xd0]
jmp 0x4074b6
mov edi, eax
movzx eax, byte [eax + 0x11]
movzx ecx, byte [edi + 0x10]
movzx esi, byte [edi + 0xe]
add edx, dword [ebx + 0x88]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 0xf]
shl eax, 0x10
shl ecx, 8
add ecx, esi
mov esi, str._smallCaps
movzx ecx, cx
add eax, ecx
and eax, 0xffffff
mov dword [ebp - 0xe0], eax
lea eax, [edx + 0x1c]
call fcn.00401ea0
movzx ecx, byte [ebp - 0xd4]
mov dword [ebp - 0x110], eax
mov eax, 0x4166f8
movzx edi, byte [edi + 0xa]
mov dword [esp + 4], 0x415010
mov dword [esp], 3
mov edx, ecx
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
and edx, 0x20
mov edx, ecx
mov ecx, str._bold
mov dword [esp + 0x30], edi
cmove esi, eax
and edx, 0x10
mov edx, str._italic
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 0x2c], esi
mov esi, str._dblUnderline
cmove esi, eax
cmp byte [ebp - 0x102], 0
mov dword [esp + 0x28], esi
mov esi, str._strikeOut
cmove esi, eax
cmp byte [ebp - 0x100], 0
mov dword [esp + 0x24], esi
mov esi, str._underline
cmove esi, eax
cmp byte [ebp - 0xfc], 0
mov dword [esp + 0x20], esi
cmove edx, eax
cmp byte [ebp - 0xf8], 0
mov dword [esp + 0x1c], edx
cmovne eax, ecx
mov ecx, dword [ebp - 0xe0]
mov dword [esp + 0x18], eax
movzx eax, byte [ebp - 0xd4]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0xe8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xcc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0x110]
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0xf0]
mov dword [esp + 0x34], ecx
call fcn.00402130
jmp 0x407bd1
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebp - 0x108]
lea edi, [ecx + edx]
lea esi, [edi + 0x1c]
mov dword [ebp - 0x110], esi
mov esi, dword [ebp - 0x114]
imul esi, dword [ebp - 0xe8]
add esi, dword [ebp - 0xf4]
add esi, dword [ebp - 0x10c]
cmp eax, 4
jae 0x408bcb
test eax, eax
je 0x40823c
movzx ecx, byte [esi]
mov byte [edi + 0x1c], cl
mov ecx, eax
and ecx, 2
jne 0x409bd1
mov ecx, dword [ebx + 0x88]
add ecx, dword [ebp - 0x108]
mov byte [edx + ecx + 0x1c], 0
jmp 0x407b90
test byte [0x415010], 4
je 0x407285
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 fcn.00402130
jmp 0x407285
mov esi, dword [ebp - 0xd4]
mov dword [ebx + 0x64], edi
cmp dword [ebp - 0xe0], esi
jb 0x408d2a
test byte [0x415010], 4
je 0x4082c4
mov dword [esp + 0xc], 0x41712d
mov dword [esp + 8], str.HLPFILE_UncompressLZ77_Phrases
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
lea eax, [ebp - 0xb8]
mov edx, str.PhrIndex
mov dword [esp], eax
lea ecx, [ebp - 0xbc]
mov eax, ebx
call fcn.00402e00
test eax, eax
je 0x407734
lea eax, [ebp - 0xb0]
mov edx, str.PhrImage
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
je 0x407734
mov edi, dword [ebp - 0xbc]
movzx eax, byte [edi + 0x22]
movzx edx, byte [edi + 0x21]
shl eax, 8
add eax, edx
and edx, 0xf
mov word [ebp - 0xe8], ax
movzx eax, byte [edi + 0xe]
mov word [ebp - 0xd4], dx
movzx edx, byte [edi + 0xd]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xe4], eax
mov dword [ebx + 0x64], eax
test byte [0x415010], 8
jne 0x409a2a
movzx eax, byte [edi + 0x18]
movzx edx, byte [edi + 0x17]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x15]
mov ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x1b]
movzx eax, ax
lea esi, [ecx + eax]
movzx eax, byte [edi + 0x1c]
mov dword [ebp - 0xf4], esi
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x19]
mov ecx, eax
movzx eax, byte [edi + 0x1a]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ecx
mov dword [ebp - 0xf8], eax
cmp eax, esi
je 0x4083fc
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb0]
lea esi, [eax + 9]
mov eax, esi
mov dword [ebp - 0xcc], edx
call fcn.00401a20
cmp eax, dword [ebp - 0xf4]
je 0x4083fc
test byte [0x415010], 4
mov edx, dword [ebp - 0xcc]
jne 0x409b94
mov eax, esi
call fcn.00401a20
mov esi, dword [ebp - 0xf4]
cmp esi, eax
cmovge eax, esi
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xdc]
lea eax, [eax*4 + 4]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0xf4]
mov dword [ebx + 0x68], eax
mov dword [ebp - 0xd0], eax
mov dword [esp], ecx
call esi
mov edx, dword [ebp - 0xd0]
mov esi, eax
mov ecx, eax
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0xd0]
test edx, edx
je 0x409c13
test esi, esi
je 0x409c13
mov esi, dword [ebp - 0xe4]
mov dword [eax], 0
lea edx, [edi + 0x21]
test esi, esi
je 0x409758
movzx esi, word [ebp - 0xe8]
mov eax, 1
mov dword [ebp - 0xe0], 0
movzx ecx, word [ebp - 0xd4]
mov edi, eax
mov dword [ebp - 0xf0], ebx
xor eax, eax
mov dword [ebp - 0xcc], 0
and esi, 0xc
shl edi, cl
mov word [ebp - 0xec], si
mov ebx, 1
jmp 0x4084ba
mov esi, dword [edx]
test ecx, esi
je 0x4084db
add ebx, edi
mov eax, ecx
mov ecx, eax
add ecx, ecx
jne 0x4084b0
mov esi, dword [edx + 4]
lea ecx, [edx + 4]
test esi, 1
je 0x4085f5
mov edx, ecx
mov ecx, 1
jmp 0x4084b6
shl eax, 2
test eax, eax
jne 0x409c33
mov esi, dword [edx + 4]
lea ecx, [edx + 4]
test esi, 1
je 0x408b6b
mov eax, 1
add ebx, 1
mov edx, ecx
test byte [ebp - 0xe8], 0xe
je 0x40852c
add eax, eax
jne 0x4097a4
lea eax, [ecx + 4]
mov ecx, dword [ecx + 4]
test cl, 1
je 0x40978a
mov edx, eax
mov eax, 1
add ebx, 2
cmp word [ebp - 0xd4], 2
jbe 0x408557
add eax, eax
jne 0x408ce3
mov ecx, dword [edx + 4]
lea eax, [edx + 4]
test cl, 1
je 0x409735
mov edx, eax
mov eax, 1
add ebx, 4
cmp word [ebp - 0xec], 0
je 0x408582
add eax, eax
jne 0x408d1b
mov ecx, dword [edx + 4]
lea eax, [edx + 4]
test cl, 1
je 0x4096e6
mov edx, eax
mov eax, 1
add ebx, 8
cmp word [ebp - 0xd4], 4
jbe 0x4085a7
add eax, eax
jne 0x408c93
test byte [edx + 4], 1
lea eax, [edx + 4]
mov edx, eax
mov eax, 1
je 0x4085a7
add ebx, 0x10
add dword [ebp - 0xcc], 1
movzx ecx, bx
mov esi, dword [ebp - 0xcc]
add ecx, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xd0]
mov dword [ebx + esi*4], ecx
cmp dword [ebp - 0xe4], esi
je 0x40974f
mov esi, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xcc]
mov esi, dword [esi + 0x68]
mov dword [ebp - 0xd0], esi
mov esi, dword [esi + ecx*4]
mov dword [ebp - 0xe0], esi
jmp 0x40849f
mov eax, 2
test eax, esi
jne 0x4084fd
jmp 0x408500
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 fcn.00402130
jmp 0x407e60
mov esi, dword [ebp - 0xd0]
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0xd4], eax
add eax, 1
mov dword [esi + 0x8c], eax
imul eax, eax, 0x68
mov dword [esp + 4], eax
mov eax, dword [esi + 0x90]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [esi + 0x90], eax
test eax, eax
je 0x407d10
mov esi, dword [ebp - 0xd0]
imul edx, dword [esi + 0x8c], 0x68
lea esi, [eax + edx - 0x68]
movzx edx, byte [edi + 5]
movzx eax, byte [edi + 4]
shl edx, 8
lea ebx, [edx + eax]
and ax, 1
mov word [ebp - 0xec], ax
jne 0x4096fc
mov byte [esi], 0
mov eax, ebx
and ax, 2
mov word [ebp - 0xf0], ax
jne 0x40971d
mov byte [esi + 0xa], 0
lea ecx, [esi + 0x13]
mov eax, ebx
and ax, 4
mov dword [ebp - 0xe8], ecx
mov word [ebp - 0xf4], ax
je 0x408ca2
lea eax, [edi + 0x19]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [ebp - 0xd4], 0x80000000
mov eax, ebx
and ax, 8
mov word [ebp - 0xf8], ax
je 0x408714
movzx eax, byte [edi + 0x4d]
movzx edx, byte [edi + 0x4c]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xe0], 0x80000000
mov eax, dword [ebp - 0xd4]
mov dword [esi + 0x48], eax
mov eax, ebx
and ax, 0x10
mov word [ebp - 0xfc], ax
je 0x40874c
movzx eax, byte [edi + 0x4f]
movzx edx, byte [edi + 0x4e]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov ecx, 0x80000000
mov dword [esi + 0x4c], eax
mov eax, ebx
and ax, 0x20
mov word [ebp - 0x100], ax
je 0x408779
movzx eax, byte [edi + 0x51]
movzx edx, byte [edi + 0x50]
shl eax, 8
add eax, edx
movzx ecx, ax
mov eax, ebx
mov dword [esi + 0x50], ecx
mov dword [ebp - 0xe4], 0x80000000
and ax, 0x40
mov word [ebp - 0x102], ax
je 0x4087ab
movzx eax, byte [edi + 0x53]
movzx edx, byte [edi + 0x52]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov edx, ebx
and dx, 0x80
mov word [ebp - 0x108], dx
mov dword [esi + 0x54], eax
mov eax, 5
je 0x4087d9
movzx eax, byte [edi + 0x55]
movzx edx, byte [edi + 0x54]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [esi + 0x58], eax
mov eax, 0xffffff
mov dword [esi + 0x5c], 0xcf0000
test bh, 1
je 0x408819
movzx eax, byte [edi + 0x59]
movzx edx, byte [edi + 0x58]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x56]
shl eax, 0x10
mov dword [ebp - 0x10c], eax
movzx eax, byte [edi + 0x57]
shl eax, 8
add eax, edx
movzx eax, ax
add eax, dword [ebp - 0x10c]
and bh, 2
mov dword [esi + 0x60], eax
mov eax, 0xffffff
je 0x40884a
movzx eax, byte [edi + 0x5d]
movzx edx, byte [edi + 0x5c]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x5a]
mov ebx, eax
movzx eax, byte [edi + 0x5b]
shl ebx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, ebx
mov dword [esi + 0x64], eax
test byte [0x415010], 8
je 0x407d10
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x110], ecx
call fcn.00401ea0
mov dword [ebp - 0xe8], eax
lea eax, [esi + 0xa]
call fcn.00401ea0
mov dword [ebp - 0x10c], eax
mov eax, esi
call fcn.00401ea0
cmp word [ebp - 0x108], 1
mov dword [esp + 0x30], eax
sbb edx, edx
and edx, 0x20
add edx, 0x53
cmp word [ebp - 0x102], 1
mov dword [esp + 0x2c], edx
sbb esi, esi
and esi, 0x20
add esi, 0x48
cmp word [ebp - 0x100], 1
mov dword [esp + 0x28], esi
sbb ecx, ecx
and ecx, 0x20
add ecx, 0x57
cmp word [ebp - 0xfc], 1
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0xe4]
sbb ebx, ebx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp - 0x110]
and ebx, 0x20
add ebx, 0x59
cmp word [ebp - 0xf8], 1
mov dword [ebp - 0xfc], ebx
mov esi, dword [ebp - 0xfc]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp - 0xe0]
sbb eax, eax
and eax, 0x20
mov dword [esp + 0x20], esi
add eax, 0x58
cmp word [ebp - 0xf4], 1
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xf8], eax
mov esi, dword [ebp - 0xf8]
sbb ebx, ebx
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0xe8]
and ebx, 0x20
add ebx, 0x43
cmp word [ebp - 0xf0], 1
mov dword [ebp - 0xf4], ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0x10c]
sbb ebx, ebx
and ebx, 0x20
add ebx, 0x4e
cmp word [ebp - 0xec], 1
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0x100]
sbb eax, eax
mov dword [esp + 0x24], ecx
and eax, 0x20
mov dword [esp + 0x1c], esi
mov esi, dword [ebp - 0xf4]
add eax, 0x54
mov dword [esp + 0x14], ebx
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 + 0x18], esi
mov dword [esp + 8], str.HLPFILE_SystemCommands
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call fcn.00402130
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, edx
jmp 0x407d1d
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__strdup]
mov esi, dword [ebp - 0xd0]
mov dword [esi + 0x10], eax
test eax, eax
je 0x409c28
test byte [0x415010], 8
je 0x407d10
call fcn.00401ea0
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 0x407d92
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__strdup]
mov esi, dword [ebp - 0xd0]
mov dword [esi + 0xc], eax
test eax, eax
je 0x409c28
test byte [0x415010], 8
je 0x407d10
call fcn.00401ea0
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 0x407d92
mov eax, dword [ebp - 0xec]
mov dword [esp + 0xc], str.Too_high_face_ref___u__u__n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 4], 0x415010
mov dword [esp], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x110], edx
mov dword [esp + 0x10], eax
call fcn.00402130
movzx eax, byte [0x415010]
mov edx, dword [ebp - 0x110]
mov byte [ebp - 0xe0], al
jmp 0x407b7d
movzx esi, word [ebx + 0x54]
mov dword [ebp - 0xd4], edx
lea eax, [esi + 4]
imul eax, edx
mov dword [esp], eax
mov eax, dword [ebp - 0xdc]
call eax
mov dword [ebx + 0x70], eax
test eax, eax
je 0x407285
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xcc]
lea edi, [eax + edx*4]
add ecx, edi
mov dword [ebp - 0xcc], edi
mov dword [ebx + 0x74], ecx
test edx, edx
je 0x4078c0
xor edi, edi
mov edx, esi
jmp 0x408b27
mov eax, dword [ebx + 0x70]
movzx edx, word [ebx + 0x54]
imul edx, edi
add edx, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xd0]
mov dword [eax + edi*4], edx
mov eax, dword [ebx + 0x70]
movzx ecx, word [ebx + 0x54]
mov edx, dword [eax + edi*4]
movzx eax, word [ebx + 0x52]
mov dword [esp + 8], ecx
mov dword [esp], edx
imul eax, edi
add edi, 1
lea eax, [esi + eax + 0xc]
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
cmp edi, dword [ebx + 0x78]
jb 0x408b20
jmp 0x4078c0
test byte [ebp - 0xe8], 0xe
je 0x408cf2
mov edx, ecx
mov eax, 2
test eax, esi
jne 0x408529
jmp 0x40852c
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xe0]
call fcn.00401aa0
jmp 0x40772d
mov word [ebx + 0x4c], si
lea edi, [ecx + 0x15]
xor eax, eax
mov edx, 0xff4
mov dword [ebx + 0x58], 0
mov word [ebx + 0x4e], ax
mov dword [ebx + 0x50], 0x10000001
mov word [ebx + 0x54], dx
jmp 0x407cc5
mov edi, dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
mov ecx, dword [esi + edi - 4]
mov dword [eax + edi - 4], ecx
mov ecx, dword [ebp - 0x118]
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x408236
test byte [ebp - 0xe0], 1
je 0x407b48
mov eax, dword [ebp - 0xf0]
mov dword [esp + 0xc], str.Unknown_family__u_n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 4], 0x415010
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov dword [ebp - 0xe8], edx
call fcn.00402130
movzx eax, byte [0x415010]
mov edx, dword [ebp - 0xe8]
mov byte [ebp - 0xe0], al
jmp 0x407b48
test byte [0x415010], 4
jne 0x40997f
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
jmp 0x407285
mov eax, dword [ebp - 0xd0]
lea edx, [eax + 0x1c]
jmp 0x407f4c
cmp word [ebp - 0xd4], 4
jbe 0x409711
mov edx, eax
mov eax, 2
mov ecx, dword [edx]
test eax, ecx
jne 0x4085a4
jmp 0x4085a7
mov eax, dword [ebp - 0xd0]
mov word [ebp - 0xd4], bx
mov edx, dword [ebp - 0xe8]
mov eax, dword [eax + 0xc]
lea ecx, [eax + 0x32]
mov ebx, ecx
lea esi, [esi]
movzx ecx, byte [eax]
test cl, cl
je 0x408cd4
add eax, 1
add edx, 1
mov byte [edx - 1], cl
cmp eax, ebx
jne 0x408cc0
movzx ebx, word [ebp - 0xd4]
mov byte [edx], 0
jmp 0x4086e5
mov ecx, dword [edx]
test eax, ecx
jne 0x408554
jmp 0x408557
cmp word [ebp - 0xd4], 2
mov edx, ecx
mov eax, 2
ja 0x408ce3
cmp word [ebp - 0xec], 0
mov eax, 1
je 0x408582
mov eax, 2
mov ecx, dword [edx]
test eax, ecx
jne 0x40857f
jmp 0x408582
mov edx, dword [ebp - 0xd4]
mov esi, 0x11
mov eax, dword [ebp - 0xe0]
call fcn.00401a20
mov dword [ebp - 0xec], eax
jmp 0x40765e
movzx edx, word [ebx + 0x4c]
mov edi, 0xffffffff
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xd4], 0xc
mov dword [ebp - 0xd0], ebx
jmp 0x408ed5
mov eax, dword [ebp - 0xd0]
xor edx, edx
movzx esi, word [eax + 0x54]
mov eax, ecx
div esi
mov ebx, edx
mov dword [ebp - 0xcc], eax
cmp eax, edi
je 0x408da2
cmp edi, 0xffffffff
je 0x408da2
sub ebx, 0xc
mov dword [ebp - 0xd4], ecx
test byte [0x415010], 8
jne 0x408f08
mov eax, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xcc]
cmp dword [eax + 0x78], esi
jbe 0x40983e
mov ecx, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xcc]
mov eax, dword [ecx + 0x70]
mov edx, dword [ecx + 0x74]
add ebx, dword [eax + esi*4]
lea eax, [ebx + 0x15]
cmp edx, eax
jbe 0x409806
movzx esi, byte [ebx + 3]
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 1]
shl esi, 0x10
shl eax, 8
add eax, ecx
movzx eax, ax
add esi, eax
lea eax, [ebx + esi]
cmp edx, eax
cmovbe eax, edx
mov ecx, eax
xor eax, eax
cmp edi, dword [ebp - 0xcc]
cmove eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe4], eax
movzx eax, byte [ebx + 0x14]
cmp al, 2
je 0x408f98
jbe 0x408f50
cmp al, 0x20
je 0x408e42
cmp al, 0x23
jne 0x408f58
mov esi, dword [ebp - 0xd0]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x409330
lea edx, [ebx + 0x19]
cmp ecx, edx
jb 0x4092d0
cmp al, 0x20
je 0x40930c
cmp al, 0x23
sete al
sub ecx, ebx
sub ecx, 0xf
test al, al
jne 0x40930c
add dword [ebp - 0xe4], ecx
mov eax, dword [ebp - 0xd0]
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 eax, ecx
mov ecx, eax
cmp dx, 0x10
ja 0x408ec9
add ecx, dword [ebp - 0xd4]
cmp ecx, 0xffffffff
je 0x409447
test eax, eax
je 0x409447
mov edi, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp - 0xd4]
lea ecx, [eax - 0xc]
cmp dx, 0x10
jbe 0x408d78
mov eax, ecx
and ecx, 0x3fff
shr eax, 0xe
mov ebx, ecx
mov dword [ebp - 0xcc], eax
test byte [0x415010], 8
je 0x408daf
mov eax, dword [ebp - 0xcc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], str.ref_08lx_____u__u__n
mov dword [esp + 8], str.HLPFILE_DoReadHlpFile
mov dword [esp + 4], 0x415010
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.00402130
jmp 0x408daf
cmp al, 1
je 0x408e42
test byte [0x415010], 2
je 0x408e7e
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 fcn.00402130
jmp 0x408e7e
mov eax, dword [ebp - 0xd0]
cmp word [eax + 0x4c], 0x10
mov eax, dword [ebp - 0xcc]
ja 0x409032
mov edi, dword [ebp - 0xd4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
mov dword [ebp - 0xe0], eax
movzx eax, byte [ebx + 0x13]
movzx edx, byte [ebx + 0x12]
shl eax, 8
lea edi, [eax + edx]
movzx eax, byte [ebx + 0x11]
movzx edx, byte [ebx + 0x10]
shl edi, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add eax, edi
mov dword [ebp - 0xec], eax
add eax, ebx
mov dword [ebp - 0xf0], eax
cmp ecx, eax
jae 0x409046
mov ebx, dword [ebp - 0xd0]
test byte [0x415010], 4
je 0x407285
mov dword [esp + 0xc], str.page2_n
mov dword [esp + 8], str.HLPFILE_AddPage
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
jmp 0x407285
shl eax, 0xf
add eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe0], eax
jmp 0x408fc1
movzx eax, byte [ebx + 7]
mov dword [ebp - 0xf4], ecx
movzx edx, byte [ebx + 6]
movzx edi, byte [ebx + 4]
mov ecx, dword [ebp - 0xdc]
shl eax, 8
add edx, eax
movzx eax, byte [ebx + 5]
shl edx, 0x10
shl eax, 8
add eax, edi
movzx eax, ax
add eax, edx
mov dword [ebp - 0xe8], eax
add eax, 0x2d
mov dword [esp], eax
call ecx
mov edi, eax
test eax, eax
je 0x409c28
lea edx, [eax + 0x2c]
sub esi, dword [ebp - 0xec]
mov dword [eax], edx
cmp esi, dword [ebp - 0xe8]
jae 0x4093c7
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xf4]
mov eax, dword [eax + 0x5c]
test eax, eax
jne 0x409420
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 0x60]
test eax, eax
jne 0x4097ab
test byte [0x415010], 1
jne 0x4098c0
mov eax, dword [ebp - 0xf0]
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov edx, dword [edi]
mov dword [ebp - 0xe8], esi
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xd0]
mov byte [edx + eax], 0
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4093f4
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 - 0xd0]
mov dword [edi + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x28], ecx
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 - 0xe0]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xd4]
mov dword [edi + 0x14], eax
movzx edx, byte [ebx + 0x1c]
movzx eax, byte [ebx + 0x1b]
movzx ecx, byte [ebx + 0x19]
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 0x1a]
shl edx, 0x10
shl eax, 8
add eax, ecx
movzx eax, ax
lea esi, [edx + 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 - 0xd0]
movzx eax, ax
add eax, edx
mov dword [edi + 0x24], eax
cmp word [ecx + 0x4c], 0x10
ja 0x4091f5
mov edx, 0xffffffff
cmp esi, 0xffff
je 0x4091e0
mov edx, dword [ecx + 0x38]
mov edx, dword [edx + esi*4]
mov dword [edi + 0x20], edx
cmp eax, 0xffff
jne 0x40940c
mov dword [edi + 0x24], 0xffffffff
test byte [0x415010], 8
jne 0x409368
mov esi, dword [edi]
mov eax, dword [ebp - 0xd8]
mov dword [esp], esi
call eax
lea eax, [esi + eax + 1]
add esi, dword [ebp - 0xe8]
cmp eax, esi
jae 0x408e7e
mov dword [ebp - 0xec], ebx
mov esi, eax
jmp 0x40927b
lea eax, [ebx + 9]
add ebx, 1
mov dword [esp], eax
mov eax, dword [ebp - 0xdc]
call eax
mov edx, eax
lea eax, [eax + 8]
mov dword [ebp - 0xe0], edx
mov dword [edx], eax
mov dword [esp + 4], esi
add esi, ebx
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0xe0]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xe8]
add eax, dword [edi]
mov dword [edi + 4], edx
cmp esi, eax
jae 0x4092c5
mov eax, dword [ebp - 0xd8]
mov dword [esp], esi
call eax
mov ebx, eax
test byte [0x415010], 8
je 0x409230
mov eax, esi
call fcn.00401ea0
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 fcn.00402130
jmp 0x409230
mov ebx, dword [ebp - 0xec]
jmp 0x408e7e
mov ebx, dword [ebp - 0xd0]
test byte [0x415010], 4
je 0x407285
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 fcn.00402130
jmp 0x407285
test byte [ebx + 0x15], 1
lea eax, [ebx + 0x17]
cmove edx, eax
movzx ecx, byte [edx]
test cl, 1
je 0x409647
movzx ecx, word [edx]
shr cx, 1
movzx ecx, cx
jmp 0x408e78
mov ebx, esi
test byte [0x415010], 4
je 0x407285
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 fcn.00402130
jmp 0x407285
mov edx, dword [edi + 0x24]
mov eax, dword [edi]
mov esi, dword [edi + 0x20]
mov dword [ebp - 0xec], edx
call fcn.00401ea0
mov edx, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xe0]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], str.Added_page__d_:_title_s__08lx_____08x_____08lx_n
mov dword [esp + 8], str.HLPFILE_AddPage
mov dword [esp + 4], 0x415010
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.00402130
jmp 0x409202
mov eax, dword [ebp - 0xe8]
mov dword [esp], edx
mov dword [ebp - 0xec], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0xec]
jmp 0x4090f6
mov eax, dword [ebp - 0xd0]
mov dword [edi + 0x1c], 0
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
jmp 0x409120
mov esi, dword [ebp - 0xd0]
mov edx, dword [esi + 0x38]
mov eax, dword [edx + eax*4]
mov dword [edi + 0x24], eax
jmp 0x4091f5
mov eax, dword [ebp - 0xe8]
mov dword [esp], edx
add eax, edx
mov edx, dword [ebp - 0xf0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xd0]
call fcn.00402980
mov edx, dword [edi]
jmp 0x4090f6
mov ebx, dword [ebp - 0xd0]
lea eax, [ebp - 0xb0]
mov edx, str.KWBTREE
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
je 0x4094d8
mov esi, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xdc]
sub edi, esi
mov dword [esp], edi
call eax
mov dword [ebx + 0x24], eax
test eax, eax
je 0x4094d8
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
lea eax, [ebp - 0xb0]
mov edx, str.KWDATA
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
jne 0x4098eb
test byte [0x415010], 2
jne 0x409b6b
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea eax, [ebp - 0xb0]
mov edx, str.CTXOMAP
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
jne 0x409568
test byte [0x415010], 4
jne 0x4099bd
cmp word [ebx + 0x4c], 0x10
jbe 0x40716b
lea eax, [ebp - 0xb0]
mov edx, str.CONTEXT
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
mov eax, ebx
call fcn.00402e00
test eax, eax
jne 0x409924
test byte [0x415010], 4
je 0x407285
mov dword [esp + 0xc], str.context0_n
mov dword [esp + 8], str.HLPFILE_GetContext
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
jmp 0x407285
mov edi, dword [ebp - 0xb4]
movzx edx, byte [edi + 0xa]
movzx eax, byte [edi + 9]
shl edx, 8
add edx, eax
mov eax, dword [ebp - 0xdc]
movzx edx, dx
lea esi, [edx*8]
mov dword [ebp - 0xd0], edx
mov dword [esp], esi
call eax
mov dword [ebp - 0xcc], eax
mov dword [ebx + 0x30], eax
test eax, eax
je 0x409504
mov edx, dword [ebp - 0xd0]
mov dword [ebx + 0x2c], edx
test edx, edx
je 0x409504
lea eax, [edi + 0xb]
mov edx, 0xfffffff5
add esi, eax
sub edx, edi
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xd4], edx
jmp 0x4095db
mov esi, dword [ebx + 0x30]
mov dword [ebp - 0xcc], esi
mov ecx, dword [ebp - 0xd4]
movzx edx, byte [eax + 3]
movzx edi, byte [eax]
lea esi, [ecx + eax]
movzx ecx, byte [eax + 2]
add eax, 8
shl edx, 8
add edx, ecx
movzx ecx, byte [eax - 7]
shl edx, 0x10
shl ecx, 8
add ecx, edi
movzx ecx, cx
add edx, ecx
mov ecx, dword [ebp - 0xcc]
mov dword [ecx + esi], edx
movzx edx, byte [eax - 1]
movzx ecx, byte [eax - 2]
movzx edi, byte [eax - 4]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax - 3]
shl edx, 0x10
shl ecx, 8
add ecx, edi
movzx ecx, cx
add edx, ecx
mov ecx, dword [ebx + 0x30]
mov dword [ecx + esi + 4], edx
cmp eax, dword [ebp - 0xd0]
jne 0x4095d2
jmp 0x409504
shr cl, 1
movzx ecx, cl
jmp 0x409328
mov dword [ebx + 0xa4], 1
mov dword [ebx + 0xa8], 0
test byte [0x415010], 1
je 0x407285
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 fcn.00402130
jmp 0x407285
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp + 0xc], str.Got_NumFacenames_u__u_NumDesc_u__u_n
mov dword [esp + 8], str.HLPFILE_ReadFont
mov dword [esp + 4], 0x415010
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xf4]
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xec]
mov dword [esp + 0x10], eax
call fcn.00402130
jmp 0x40795f
cmp word [ebp - 0xd4], 4
jbe 0x409711
mov edx, eax
mov eax, 2
jmp 0x408c95
lea eax, [edi + 6]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
jmp 0x4086a2
mov edx, eax
mov eax, 1
jmp 0x4085a7
lea eax, [edi + 0x10]
mov dword [esp + 4], eax
lea eax, [esi + 0xa]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
jmp 0x4086b9
cmp word [ebp - 0xec], 0
je 0x408c7e
mov edx, eax
mov eax, 2
jmp 0x408d1d
mov ebx, dword [ebp - 0xf0]
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xf8]
add eax, 9
cmp dword [ebp - 0xf4], edi
je 0x4099e6
mov edx, dword [ebp - 0xb0]
call fcn.00401aa0
mov dword [ebx + 0x60], 1
jmp 0x407734
cmp word [ebp - 0xd4], 2
jbe 0x4099a8
mov edx, eax
mov eax, 2
jmp 0x408ce5
mov esi, dword [ecx]
jmp 0x408b7f
mov eax, dword [ebp - 0xe8]
mov dword [esp + 4], ecx
mov esi, dword [ebp - 0xf0]
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xd0]
mov dword [esp], esi
call fcn.00402ab0
mov edx, dword [edi]
jmp 0x4090f6
call fcn.00401ea0
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 fcn.00402130
jmp 0x40751c
mov ebx, ecx
test byte [0x415010], 4
je 0x40944d
mov dword [esp + 0xc], str.extra_n
mov dword [esp + 8], str.HLPFILE_DoReadHlpFile
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
jmp 0x40944d
mov ebx, eax
test byte [0x415010], 4
je 0x40944d
mov dword [esp + 0xc], str.maplen_n
mov dword [esp + 8], str.HLPFILE_DoReadHlpFile
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
jmp 0x40944d
mov dword [ebx + 0xa4], 1
mov dword [ebx + 0xa8], 0
test byte [0x415010], 1
je 0x407285
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 fcn.00402130
jmp 0x407285
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 fcn.00402130
mov edx, dword [edi]
jmp 0x4090d8
mov esi, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xdc]
sub edi, esi
mov dword [esp], edi
call eax
mov dword [ebx + 0x28], eax
test eax, eax
je 0x4094d8
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
jmp 0x4094d8
mov esi, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xdc]
sub edi, esi
mov dword [esp], edi
call eax
mov dword [ebx + 0x20], eax
test eax, eax
je 0x407285
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
jmp 0x40716b
mov eax, dword [ebp - 0xdc]
mov dword [esp], 0
call eax
mov dword [ebx + 0x70], eax
test eax, eax
je 0x407285
mov dword [ebx + 0x74], eax
jmp 0x4078c0
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 fcn.00402130
jmp 0x408c57
cmp word [ebp - 0xec], 0
je 0x409711
mov edx, eax
jmp 0x408d16
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 fcn.00402130
jmp 0x409504
mov esi, dword [ebp - 0xf4]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], esi
call sub.ucrtbase.dll_memcpy
jmp 0x40977e
mov dword [esp + 0xc], str.filesize2_n
mov dword [esp + 8], str.HLPFILE_ReadFileToBuffer
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call fcn.00402130
jmp 0x407429
movzx eax, byte [edi + 0x24]
movzx edx, byte [edi + 0x23]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0x22]
movzx edx, byte [edi + 0x21]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0x20]
movzx edx, byte [edi + 0x1f]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x1d]
mov ecx, eax
movzx eax, byte [edi + 0x1e]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add ecx, eax
mov dword [esp + 0x24], ecx
movzx eax, byte [edi + 0x1c]
movzx edx, byte [edi + 0x1b]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x19]
mov ecx, eax
movzx eax, byte [edi + 0x1a]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add ecx, eax
mov dword [esp + 0x20], ecx
movzx eax, byte [edi + 0x18]
movzx edx, byte [edi + 0x17]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x15]
mov ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add ecx, eax
mov dword [esp + 0x1c], ecx
movzx eax, byte [edi + 0x14]
movzx edx, byte [edi + 0x13]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0x11]
mov ecx, eax
movzx eax, byte [edi + 0x12]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add ecx, eax
mov dword [esp + 0x18], ecx
movzx eax, byte [edi + 0x10]
movzx edx, byte [edi + 0xf]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0xd]
mov ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add ecx, eax
mov dword [esp + 0x14], ecx
movzx eax, byte [edi + 0xc]
movzx edx, byte [edi + 0xb]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 9]
mov ecx, eax
movzx eax, byte [edi + 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
mov dword [esp + 4], 0x415010
mov dword [esp], 3
shl eax, 8
add eax, edx
movzx eax, ax
add ecx, eax
mov dword [esp + 0x10], ecx
call fcn.00402130
jmp 0x408354
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 fcn.00402130
jmp 0x4094cc
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xf4]
mov dword [esp + 0xc], str.size_mismatch__u__u_n
mov dword [esp + 8], str.HLPFILE_Uncompress_Phrases40
mov dword [esp + 4], 0x415010
mov dword [esp + 0x10], eax
mov dword [esp], 2
call fcn.00402130
mov edx, dword [ebp - 0xcc]
jmp 0x4083e4
mov edi, dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
movzx ecx, word [esi + edi - 2]
mov word [eax + edi - 2], cx
mov ecx, dword [ebx + 0x88]
jmp 0x40823c
mov dword [ebp - 0xcc], eax
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
call esi
mov eax, dword [ebp - 0xcc]
mov dword [esp], eax
call esi
jmp 0x4082c4
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call edi
mov dword [esp], esi
call edi
jmp 0x407734
mov ebx, dword [ebp - 0xd0]
jmp 0x407285
mov ecx, edx
jmp 0x4085fa