Function at 0x4062b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x40d035
mov ebp, esp
push edi
mov edi, 0x46
push esi
push ebx
sub esp, 0x6fc
mov ebx, dword [ebp + 8]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [ebp - 0x6d8], ebx
lea ebx, [ebp - 0x5b8]
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], esi
lea edx, [ebp - 0x6cc]
lea ecx, [ebp - 0x6d0]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], ebx
call fcn.00407e80
test eax, eax
jne 0x4065d3
mov ecx, dword [ebp - 0x6d0]
mov eax, 2
lea esi, [ebp - 0x6d4]
mov dword [ebp - 0x6d4], eax
mov ebx, dword [ebp - 0x6d8]
lea edx, [ebp - 0x6c8]
add ebx, 0x6d04
cmp byte [ecx + 2], 0x7c
je 0x40636e
mov eax, 2
jmp 0x406351
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x40636e
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406343
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x406351
mov byte [edx], 0
lea edi, [ebp - 0x6c8]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6d0]
mov edi, dword [ebp - 0x6d8]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x6d4]
add edi, 0x6d1d
cmp byte [ecx + eax], 0x7c
je 0x4063de
mov eax, ebx
jmp 0x4063c1
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x4063de
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4063b3
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x4063c1
mov byte [edx], 0
lea edx, [ebp - 0x6c8]
mov ebx, 0x68
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov ecx, 0x40e150
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 0x6dc], eax
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_SizeofResource
sub esp, 8
test eax, eax
mov ebx, eax
jne 0x406610
mov dword [esp], 0
mov edx, str.Reponses_non_trouv
xor edi, edi
mov dword [esp + 4], edx
mov esi, str.Quizz
mov ebx, str.Createur_quizz
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov esi, str.Explications_du_quizz
call sub.USER32.dll_MessageBoxA
mov eax, dword [ebp - 0x6d8]
mov ecx, str.Nom_du_quizz
sub esp, 0x10
mov dword [esp + 4], ecx
add eax, 0xc
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
mov edi, dword [ebp - 0x6d8]
sub esp, 8
mov dword [esp + 4], ebx
mov ebx, str.TEST
add edi, 0x110
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov edx, dword [ebp - 0x6d8]
sub esp, 8
mov dword [esp + 4], esi
mov esi, 7
add edx, 0x214
mov dword [esp], edx
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x6d8]
mov ecx, str.TEST
sub esp, 8
mov dword [esp + 4], ecx
add eax, 0x318
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
mov edi, dword [ebp - 0x6d8]
sub esp, 8
mov dword [esp + 4], ebx
mov ebx, 0xff6633
add edi, 0x41c
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov edi, dword [ebp - 0x6d8]
mov edx, 1
mov ecx, 3
sub esp, 8
xor eax, eax
mov dword [edi + 0x520], esi
mov esi, str.emplacement
mov dword [edi + 0x524], edx
mov dword [edi + 0x6ab8], ecx
mov dword [edi + 0x6ae0], ebx
mov dword [edi + 8], 0
mov dword [edi + 0x6ad8], eax
mov byte [edi + 0x6adc], 0x33
mov byte [edi + 0x6ade], 0x66
mov byte [edi + 0x6add], 0xff
mov edi, str.emplacement
mov dword [esp], 0xff6633
call sub.GDI32.dll_CreateSolidBrush
mov ebx, dword [ebp - 0x6d8]
sub esp, 4
mov edx, str.test
mov ecx, str.test
mov dword [ebx + 0x6ae4], eax
mov dword [esp + 0xc], esi
mov esi, str.test
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004061a0
mov dword [esp + 0xc], edi
mov eax, str.test
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.004061a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov ecx, str.Quizz
mov esi, 0x40e1b4
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
mov ecx, dword [ebp - 0x6d8]
xor edx, edx
sub esp, 0x10
mov dword [ecx + 0x520], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x6dc]
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
lea edx, [ebp - 0x6cc]
lea ecx, [ebp - 0x6d0]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.00407e80
mov dword [esp], edi
mov ebx, eax
call sub.KERNEL32.dll_FreeResource
sub esp, 4
test ebx, ebx
jne 0x406cbc
mov ecx, dword [ebp - 0x6d0]
mov edi, dword [ebp - 0x6d8]
movzx eax, byte [ecx + 1]
dec eax
mov dword [edi + 8], eax
mov eax, 4
movzx edx, byte [ecx + 2]
mov dword [edi + 0x520], edx
lea edx, [ebp - 0x6c8]
movzx ebx, byte [ecx + 3]
mov dword [edi + 0x524], ebx
mov ebx, edi
add ebx, 0xc
mov dword [ebp - 0x6d4], eax
cmp byte [ecx + 4], 0x7c
je 0x4066c9
mov eax, dword [esi]
jmp 0x4066ac
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x4066c9
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x40669e
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x4066ac
mov byte [edx], 0
lea ecx, [ebp - 0x6c8]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6d0]
mov edi, dword [ebp - 0x6d8]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x6d4]
add edi, 0x110
cmp byte [ecx + eax], 0x7c
je 0x406739
mov eax, ebx
jmp 0x40671c
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406739
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x40670e
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x40671c
mov byte [edx], 0
lea ebx, [ebp - 0x6c8]
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6d0]
mov edi, dword [ebp - 0x6d8]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x6d4]
add edi, 0x214
cmp byte [ecx + eax], 0x7c
je 0x4067a9
mov eax, ebx
jmp 0x40678c
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x4067a9
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x40677e
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x40678c
mov byte [edx], 0
lea edx, [ebp - 0x6c8]
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6d0]
mov edi, dword [ebp - 0x6d8]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x6d4]
add edi, 0x318
cmp byte [ecx + eax], 0x7c
je 0x406819
mov eax, ebx
jmp 0x4067fc
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406819
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4067ee
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x4067fc
mov byte [edx], 0
lea ecx, [ebp - 0x6c8]
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6d0]
mov edi, dword [ebp - 0x6d8]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x6d4]
add edi, 0x41c
cmp byte [ecx + eax], 0x7c
je 0x406889
mov eax, ebx
jmp 0x40686c
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406889
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x40685e
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x40686c
mov byte [edx], 0
lea edx, [ebp - 0x6c8]
mov dword [esp + 4], edx
mov dword [esp], edi
xor edi, edi
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov ebx, dword [ebp - 0x6d8]
mov edx, dword [ebx + 0x520]
cmp edx, 0
jle 0x406a01
lea esi, [esi]
mov ecx, dword [ebp - 0x6d0]
lea edx, [ebp - 0x6c8]
mov eax, dword [ebp - 0x6d4]
cmp byte [ecx + eax], 0x7c
je 0x406910
mov eax, dword [esi]
jmp 0x4068ee
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406910
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4068e0
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x4068ee
nop
lea esi, [esi]
mov byte [edx], 0
lea ebx, [ebp - 0x238]
lea edx, [ebp - 0x6c8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
mov ecx, dword [ebp - 0x6d8]
inc ebx
mov dword [esi], ebx
cmp dword [ecx + 0x524], 2
je 0x406cd9
mov byte [ebp - 0x348], 0
mov ecx, dword [ebp - 0x6d0]
lea edx, [ebp - 0x6c8]
mov eax, dword [ebp - 0x6d4]
cmp byte [ecx + eax], 0x7c
je 0x4069a0
mov eax, dword [esi]
jmp 0x40697e
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x4069a0
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406970
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x40697e
nop
lea esi, [esi]
mov byte [edx], 0
lea ebx, [ebp - 0x6c8]
inc edi
mov dword [esp + 4], ebx
lea edx, [ebp - 0x458]
lea ebx, [ebp - 0x238]
mov dword [esp], edx
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov edx, dword [ebp - 0x6d8]
mov dword [esp + 4], ebx
lea ecx, [ebp - 0x458]
lea eax, [ebp - 0x348]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.004061a0
mov ecx, dword [ebp - 0x6d8]
mov edx, dword [ecx + 0x520]
cmp edx, edi
jg 0x4068c0
mov ebx, dword [ebp - 0x6d4]
mov ecx, dword [ebp - 0x6d0]
mov edi, dword [ebp - 0x6d8]
movzx eax, byte [ebx + ecx]
mov dword [edi + 0x6ab8], eax
mov eax, dword [edi + 0x6ab8]
inc dword [ebp - 0x6d4]
cmp eax, 3
je 0x406d7c
jg 0x406d74
cmp eax, 2
je 0x406ed6
mov eax, dword [ebp - 0x6d4]
mov edi, dword [ebp - 0x6d8]
movzx edx, byte [eax + ecx]
mov byte [edi + 0x6adc], dl
mov ebx, dword [ebp - 0x6d4]
mov ecx, dword [ebp - 0x6d0]
lea esi, [ebx + 1]
mov dword [ebp - 0x6d4], esi
movzx eax, byte [ecx + ebx + 1]
mov ecx, dword [ebp - 0x6d8]
mov byte [ecx + 0x6ade], al
mov edi, dword [ebp - 0x6d4]
mov esi, dword [ebp - 0x6d0]
movzx eax, byte [ecx + 0x6ade]
lea edx, [edi + 1]
mov dword [ebp - 0x6d4], edx
movzx ebx, byte [esi + edi + 1]
shl eax, 8
movzx edx, byte [ecx + 0x6adc]
mov esi, 0x40e150
mov byte [ecx + 0x6add], bl
or edx, eax
movzx ebx, byte [ecx + 0x6add]
inc dword [ebp - 0x6d4]
shl ebx, 0x10
or edx, ebx
mov dword [ecx + 0x6ae0], edx
mov dword [esp], edx
call sub.GDI32.dll_CreateSolidBrush
mov edi, dword [ebp - 0x6d8]
sub esp, 4
mov dword [edi + 0x6ae4], eax
mov eax, 0x69
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
sub esp, 8
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.KERNEL32.dll_SizeofResource
sub esp, 8
mov edi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_LockResource
sub esp, 4
lea ecx, [ebp - 0x6cc]
lea edx, [ebp - 0x6d0]
mov dword [esp + 4], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.00407e80
mov dword [esp], esi
mov edi, eax
call sub.KERNEL32.dll_FreeResource
sub esp, 4
test edi, edi
jne 0x406d45
mov ebx, dword [ebp - 0x6d8]
xor edi, edi
mov dword [ebp - 0x6d4], edi
xor edi, edi
mov edx, dword [ebx + 0x520]
test edx, edx
jle 0x406c38
mov esi, ebx
add esi, 0x528
mov ecx, 0x40e0f4
lea eax, [ebp - 0x568]
xor ebx, ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
mov ecx, dword [ebp - 0x6d4]
sub esp, 8
mov eax, dword [ebp - 0x6d0]
movzx edx, byte [ecx + eax]
test dl, dl
je 0x406d45
cmp dl, 0xd
jmp 0x406bf8
movzx edx, byte [ecx + eax]
mov byte [ebx + ebp - 0x568], dl
mov edx, dword [ebp - 0x6d4]
inc ebx
lea eax, [edx + 1]
mov ecx, eax
mov dword [ebp - 0x6d4], eax
mov eax, dword [ebp - 0x6d0]
cmp byte [eax + edx + 1], 0xd
jne 0x406bd0
xor eax, eax
lea ecx, [ebp - 0x568]
inc edi
mov byte [ebx + ebp - 0x568], al
mov dword [esp], esi
add esi, 0x104
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_lstrcpyA
add dword [ebp - 0x6d4], 2
sub esp, 8
mov ebx, dword [ebp - 0x6d8]
cmp dword [ebx + 0x520], edi
jg 0x406b92
mov ebx, dword [ebp - 0x6d8]
xor ecx, ecx
mov edx, 0x40e150
mov edi, 0x6a
mov dword [ebx + 0x6abc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 0x6ec], eax
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
mov esi, dword [ebp - 0x6ec]
sub esp, 8
mov ebx, eax
mov dword [esp], 0
mov dword [esp + 4], esi
call sub.KERNEL32.dll_SizeofResource
sub esp, 8
test eax, eax
jne 0x406fbf
mov edi, dword [ebp - 0x6ec]
mov dword [esp], edi
call sub.KERNEL32.dll_FreeResource
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov edi, str.Quizz
mov esi, 0x40e1d0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
jmp 0x4065eb
mov ecx, dword [ebp - 0x6d0]
lea edx, [ebp - 0x6c8]
mov eax, dword [ebp - 0x6d4]
cmp byte [ecx + eax], 0x7c
je 0x406d20
mov eax, ebx
jmp 0x406d03
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406d20
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406cf5
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x406d03
mov byte [edx], 0
lea ecx, [ebp - 0x348]
lea ebx, [ebp - 0x6c8]
mov dword [esp + 4], ebx
mov dword [esp], ecx
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
jmp 0x40694d
mov dword [esp], 0
xor esi, esi
mov ebx, str.Quizz
mov dword [esp + 0xc], esi
mov ecx, str.Erreur_dans_le_d
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
jmp 0x406a3b
xor edi, edi
cmp edx, 0
mov dword [ebp - 0x6e4], edi
jle 0x406a41
mov ebx, dword [ebp - 0x6d4]
lea edx, [ebp - 0x6c8]
cmp byte [ecx + ebx], 0x7c
je 0x406dce
mov eax, dword [esi]
jmp 0x406db1
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406dce
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406da3
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x406db1
mov byte [edx], 0
lea ecx, [ebp - 0x6c8]
lea edx, [ebp - 0x238]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6d0]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x6d4]
cmp byte [ecx + eax], 0x7c
je 0x406e3b
mov eax, ebx
jmp 0x406e1e
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406e3b
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406e10
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x406e1e
mov byte [edx], 0
lea eax, [ebp - 0x6c8]
lea ebx, [ebp - 0x348]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov edi, dword [ebp - 0x6d8]
mov ecx, dword [edi + 0x6d48]
xor edi, edi
test ecx, ecx
jmp 0x406e89
mov edi, ecx
mov ecx, dword [ecx + 0x424]
inc ebx
test ecx, ecx
setne dl
cmp ebx, dword [ebp - 0x6e4]
setbe al
test al, dl
jne 0x406e70
lea eax, [ebp - 0x238]
lea ebx, [edi + 0x30c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
inc dword [ebp - 0x6e4]
sub esp, 8
mov ecx, dword [ebp - 0x6d8]
mov edi, dword [ebp - 0x6e4]
cmp dword [ecx + 0x520], edi
jle 0x406ecb
mov ecx, dword [ebp - 0x6d0]
jmp 0x406d8d
mov ecx, dword [ebp - 0x6d0]
jmp 0x406a41
xor edi, edi
cmp edx, 0
mov dword [ebp - 0x6e0], edi
jle 0x406a41
mov eax, dword [ebp - 0x6d4]
lea edx, [ebp - 0x6c8]
cmp byte [ecx + eax], 0x7c
je 0x406f2b
mov eax, dword [esi]
jmp 0x406f0e
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406f2b
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406f00
mov byte [edx], 0x5e
mov byte [edx + 1], 0x5e
mov eax, dword [esi]
add edx, 2
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x406f0e
mov byte [edx], 0
lea ecx, [ebp - 0x238]
xor edi, edi
mov dword [esp], ecx
lea ebx, [ebp - 0x6c8]
mov dword [esp + 4], ebx
xor ebx, ebx
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov edx, dword [ebp - 0x6d8]
mov ecx, dword [edx + 0x6d48]
test ecx, ecx
jmp 0x406f79
mov edi, ecx
mov ecx, dword [ecx + 0x424]
inc ebx
test ecx, ecx
setne dl
cmp ebx, dword [ebp - 0x6e0]
setbe al
test al, dl
jne 0x406f60
lea eax, [ebp - 0x238]
lea ebx, [edi + 0x30c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
inc dword [ebp - 0x6e0]
sub esp, 8
mov ecx, dword [ebp - 0x6d8]
mov edi, dword [ebp - 0x6e0]
cmp dword [ecx + 0x520], edi
jle 0x406ecb
mov ecx, dword [ebp - 0x6d0]
jmp 0x406ee7
mov dword [esp], ebx
mov esi, 1
xor edi, edi
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0x6f0], eax
mov edx, dword [ebp - 0x6d8]
sub esp, 4
mov dword [ebp - 0x6d4], esi
mov eax, dword [edx + 0x520]
test eax, eax
jle 0x406ca3
mov ebx, dword [edx + 0x6d48]
mov dword [ebp - 0x6e8], ebx
mov ecx, dword [ebp - 0x6e8]
xor ebx, ebx
xor esi, esi
test ecx, ecx
jmp 0x407025
mov esi, ecx
mov ecx, dword [ecx + 0x424]
inc ebx
test ecx, ecx
setne dl
cmp ebx, edi
setbe al
test al, dl
jne 0x407010
mov eax, dword [ebp - 0x6d4]
inc edi
mov ebx, dword [ebp - 0x6f0]
lea edx, [eax + 1]
movzx ecx, byte [eax + ebx]
mov dword [ebp - 0x6d4], edx
lea edx, [eax + 2]
mov dword [esi + 0x414], ecx
movzx ecx, byte [ebx + eax + 1]
mov dword [ebp - 0x6d4], edx
mov dword [esi + 0x418], ecx
mov ecx, dword [ebp - 0x6d8]
movzx edx, byte [ebx + eax + 2]
add eax, 3
mov dword [ebp - 0x6d4], eax
mov dword [esi + 0x41c], edx
cmp dword [ecx + 0x520], edi
jg 0x406ffd
jmp 0x406ca3