Function at 0x405f00
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.00407ad0
test eax, eax
jne 0x406223
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 0x405fbe
mov eax, 2
jmp 0x405fa1
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x405fbe
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x405f93
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 0x405fa1
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 0x40602e
mov eax, ebx
jmp 0x406011
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x40602e
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406003
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 0x406011
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, 0x40e140
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 0x406260
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.00405df0
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.00405df0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov ecx, str.Quizz
mov esi, 0x40e1a4
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.00407ad0
mov dword [esp], edi
mov ebx, eax
call sub.KERNEL32.dll_FreeResource
sub esp, 4
test ebx, ebx
jne 0x40690c
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 0x406319
mov eax, dword [esi]
jmp 0x4062fc
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406319
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4062ee
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 0x4062fc
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 0x406389
mov eax, ebx
jmp 0x40636c
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406389
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x40635e
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 0x40636c
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 0x4063f9
mov eax, ebx
jmp 0x4063dc
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x4063f9
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4063ce
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 0x4063dc
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 0x406469
mov eax, ebx
jmp 0x40644c
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406469
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x40643e
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 0x40644c
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 0x4064d9
mov eax, ebx
jmp 0x4064bc
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x4064d9
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4064ae
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 0x4064bc
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 0x406651
lea esi, [esi]
mov ecx, dword [ebp - 0x6d0]
lea edx, [ebp - 0x6c8]
mov eax, dword [ebp - 0x6d4]
cmp byte [ecx + eax], 0x7c
je 0x406560
mov eax, dword [esi]
jmp 0x40653e
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406560
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406530
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 0x40653e
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 0x406929
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 0x4065f0
mov eax, dword [esi]
jmp 0x4065ce
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x4065f0
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4065c0
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 0x4065ce
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.00405df0
mov ecx, dword [ebp - 0x6d8]
mov edx, dword [ecx + 0x520]
cmp edx, edi
jg 0x406510
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 0x4069cc
jg 0x4069c4
cmp eax, 2
je 0x406b26
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, 0x40e140
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.00407ad0
mov dword [esp], esi
mov edi, eax
call sub.KERNEL32.dll_FreeResource
sub esp, 4
test edi, edi
jne 0x406995
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 0x406888
mov esi, ebx
add esi, 0x528
mov ecx, 0x40e0e4
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 0x406995
cmp dl, 0xd
jmp 0x406848
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 0x406820
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 0x4067e2
mov ebx, dword [ebp - 0x6d8]
xor ecx, ecx
mov edx, 0x40e140
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 0x406c0f
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, 0x40e1c0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
jmp 0x40623b
mov ecx, dword [ebp - 0x6d0]
lea edx, [ebp - 0x6c8]
mov eax, dword [ebp - 0x6d4]
cmp byte [ecx + eax], 0x7c
je 0x406970
mov eax, ebx
jmp 0x406953
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406970
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406945
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 0x406953
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 0x40659d
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 0x40668b
xor edi, edi
cmp edx, 0
mov dword [ebp - 0x6e4], edi
jle 0x406691
mov ebx, dword [ebp - 0x6d4]
lea edx, [ebp - 0x6c8]
cmp byte [ecx + ebx], 0x7c
je 0x406a1e
mov eax, dword [esi]
jmp 0x406a01
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406a1e
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x4069f3
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 0x406a01
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 0x406a8b
mov eax, ebx
jmp 0x406a6e
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406a8b
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406a60
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 0x406a6e
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 0x406ad9
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 0x406ac0
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 0x406b1b
mov ecx, dword [ebp - 0x6d0]
jmp 0x4069dd
mov ecx, dword [ebp - 0x6d0]
jmp 0x406691
xor edi, edi
cmp edx, 0
mov dword [ebp - 0x6e0], edi
jle 0x406691
mov eax, dword [ebp - 0x6d4]
lea edx, [ebp - 0x6c8]
cmp byte [ecx + eax], 0x7c
je 0x406b7b
mov eax, dword [esi]
jmp 0x406b5e
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
je 0x406b7b
movzx eax, byte [ecx + eax]
cmp al, 0x2a
jne 0x406b50
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 0x406b5e
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 0x406bc9
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 0x406bb0
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 0x406b1b
mov ecx, dword [ebp - 0x6d0]
jmp 0x406b37
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 0x4068f3
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 0x406c75
mov esi, ecx
mov ecx, dword [ecx + 0x424]
inc ebx
test ecx, ecx
setne dl
cmp ebx, edi
setbe al
test al, dl
jne 0x406c60
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 0x406c4d
jmp 0x4068f3