Function at 0x4082b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x46
mov ebp, esp
push edi
mov edi, 0x411035
push esi
lea esi, [ebp - 0x4a8]
push ebx
sub esp, 0x72c
mov ebx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x708], ebx
lea ebx, [ebp - 0x5e8]
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
mov dword [esp], ebx
xor ecx, ecx
mov edx, 0x412268
mov dword [ebp - 0x710], ecx
mov dword [esp + 4], edx
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
mov dword [ebp - 0x714], eax
xor eax, eax
sub esp, 4
mov dword [ebp - 0x718], eax
mov edx, dword [ebp - 0x718]
lea ebx, [ebp - 0x4a8]
mov esi, 0x46
test edx, edx
je 0x4083ac
cmp dword [ebp - 0x718], 1
je 0x408972
mov eax, 0x41227e
mov edi, 0x69
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 0x70c], eax
sub esp, 0xc
mov ecx, dword [ebp - 0x70c]
mov dword [esp], 0
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_LoadResource
mov edx, dword [ebp - 0x70c]
sub esp, 8
mov ebx, eax
mov dword [esp], 0
mov dword [esp + 4], edx
call sub.KERNEL32.dll_SizeofResource
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_LockResource
sub esp, 4
mov ebx, eax
mov dword [esp + 4], esi
lea eax, [ebp - 0x6fc]
lea edi, [ebp - 0x700]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], ebx
call fcn.00409e10
test eax, eax
je 0x40843b
mov ecx, 1
jmp 0x408405
mov edi, dword [ebp - 0x710]
movzx eax, byte [edi + ebp - 0x5e8]
xor byte [ecx + ebx], al
xor eax, eax
mov edx, dword [ebp - 0x710]
inc edx
cmp edx, dword [ebp - 0x714]
setne al
neg eax
and eax, edx
inc ecx
mov dword [ebp - 0x710], eax
cmp ecx, esi
jl 0x4083d7
mov eax, dword [ebp - 0x700]
lea edx, [ebp - 0x6fc]
lea ecx, [ebp - 0x700]
mov byte [esi + eax], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00409e10
test eax, eax
jne 0x408a9d
cmp dword [ebp - 0x718], 1
je 0x408534
jle 0x408472
cmp dword [ebp - 0x718], 2
je 0x408989
inc dword [ebp - 0x718]
cmp dword [ebp - 0x718], 2
jle 0x408320
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x718]
test eax, eax
jne 0x408457
mov esi, 2
mov edx, dword [ebp - 0x700]
lea edi, [ebp - 0x6f8]
mov dword [ebp - 0x704], esi
mov esi, dword [ebp - 0x708]
lea ebx, [ebp - 0x704]
mov ecx, edi
add esi, 0x6af0
cmp byte [edx + 2], 0x7c
je 0x4084c4
mov eax, 2
movzx eax, byte [edx + eax]
mov byte [ecx], al
mov eax, dword [ebx]
inc ecx
inc eax
mov dword [ebx], eax
cmp byte [edx + eax], 0x7c
jne 0x4084b2
mov byte [ecx], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call sub.KERNEL32.dll_lstrcpyA
mov esi, dword [ebx]
sub esp, 8
mov ecx, dword [ebp - 0x708]
mov edx, dword [ebp - 0x700]
inc esi
add ecx, 0x6b09
mov dword [ebx], esi
mov eax, dword [ebp - 0x704]
mov dword [ebp - 0x71c], ecx
mov ecx, edi
cmp byte [edx + eax], 0x7c
je 0x408515
mov eax, esi
movzx eax, byte [edx + eax]
mov byte [ecx], al
mov eax, dword [ebx]
inc ecx
inc eax
mov dword [ebx], eax
cmp byte [edx + eax], 0x7c
jne 0x408503
mov byte [ecx], 0
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x71c]
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
inc dword [ebx]
sub esp, 8
jmp 0x408457
mov ebx, dword [ebp - 0x70c]
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeResource
mov ecx, dword [ebp - 0x700]
mov edx, 4
sub esp, 4
mov ebx, dword [ebp - 0x708]
movzx edi, byte [ecx + 1]
dec edi
mov dword [ebx + 8], edi
movzx eax, byte [ecx + 2]
mov dword [ebx + 0x520], eax
movzx esi, byte [ecx + 3]
mov dword [ebx + 0x524], esi
add ebx, 0xc
mov dword [ebp - 0x704], edx
lea esi, [ebp - 0x704]
cmp byte [ecx + 4], 0x7c
lea edx, [ebp - 0x6f8]
je 0x4085b2
mov eax, 4
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [ecx + eax]
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x4085a0
mov byte [edx], 0
lea ecx, [ebp - 0x6f8]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x6f8]
mov edx, dword [ebp - 0x700]
mov edi, dword [ebp - 0x708]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x704]
add edi, 0x110
cmp byte [edx + eax], 0x7c
je 0x408612
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
movzx ebx, byte [edx + eax]
mov byte [ecx], bl
mov eax, dword [esi]
inc ecx
inc eax
mov dword [esi], eax
cmp byte [edx + eax], 0x7c
jne 0x408600
mov byte [ecx], 0
lea edx, [ebp - 0x6f8]
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x6f8]
mov edx, dword [ebp - 0x700]
mov edi, dword [ebp - 0x708]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x704]
add edi, 0x214
cmp byte [edx + eax], 0x7c
je 0x408672
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
movzx ebx, byte [edx + eax]
mov byte [ecx], bl
mov eax, dword [esi]
inc ecx
inc eax
mov dword [esi], eax
cmp byte [edx + eax], 0x7c
jne 0x408660
mov byte [ecx], 0
lea ecx, [ebp - 0x6f8]
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x6f8]
mov edx, dword [ebp - 0x700]
mov edi, dword [ebp - 0x708]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x704]
add edi, 0x318
cmp byte [edx + eax], 0x7c
je 0x4086d2
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
movzx ebx, byte [edx + eax]
mov byte [ecx], bl
mov eax, dword [esi]
inc ecx
inc eax
mov dword [esi], eax
cmp byte [edx + eax], 0x7c
jne 0x4086c0
mov byte [ecx], 0
lea edx, [ebp - 0x6f8]
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x6f8]
mov edx, dword [ebp - 0x700]
mov edi, dword [ebp - 0x708]
inc ebx
mov dword [esi], ebx
mov eax, dword [ebp - 0x704]
add edi, 0x41c
cmp byte [edx + eax], 0x7c
je 0x408732
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
movzx ebx, byte [edx + eax]
mov byte [ecx], bl
mov eax, dword [esi]
inc ecx
inc eax
mov dword [esi], eax
cmp byte [edx + eax], 0x7c
jne 0x408720
mov byte [ecx], 0
lea eax, [ebp - 0x6f8]
mov dword [esp], edi
xor edi, edi
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov ecx, dword [ebp - 0x708]
mov edx, dword [ecx + 0x520]
cmp edx, 0
jle 0x408893
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [ebp - 0x700]
lea ebx, [ebp - 0x6f8]
mov edx, dword [ebp - 0x704]
cmp byte [ecx + edx], 0x7c
je 0x4087c8
mov eax, dword [esi]
lea esi, [esi]
movzx edx, byte [ecx + eax]
mov al, dl
sub al, 0x61
cmp al, 0x19
jbe 0x408a95
mov al, dl
add al, 0x20
cmp al, 0x1f
jbe 0x408a95
lea esi, [esi]
mov al, dl
sar al, 4
shl dl, 4
add dl, al
mov byte [ebx], dl
mov eax, dword [esi]
inc ebx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x408790
mov byte [ebx], 0
lea edx, [ebp - 0x128]
lea ebx, [ebp - 0x6f8]
mov dword [esp], edx
mov dword [esp + 4], ebx
call sub.KERNEL32.dll_lstrcpyA
mov edx, dword [esi]
sub esp, 8
mov ecx, dword [ebp - 0x708]
inc edx
mov dword [esi], edx
cmp dword [ecx + 0x524], 2
je 0x408ad7
mov byte [ebp - 0x238], 0
mov edx, dword [ebp - 0x700]
lea ecx, [ebp - 0x6f8]
mov eax, dword [ebp - 0x704]
cmp byte [edx + eax], 0x7c
je 0x408832
mov eax, dword [esi]
nop
movzx ebx, byte [edx + eax]
mov byte [ecx], bl
mov eax, dword [esi]
inc ecx
inc eax
mov dword [esi], eax
cmp byte [edx + eax], 0x7c
jne 0x408820
mov byte [ecx], 0
lea edx, [ebp - 0x348]
inc edi
mov dword [esp], edx
lea eax, [ebp - 0x6f8]
lea ebx, [ebp - 0x238]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov edx, dword [ebp - 0x708]
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x348]
lea eax, [ebp - 0x128]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004081b0
mov ecx, dword [ebp - 0x708]
mov edx, dword [ecx + 0x520]
cmp edx, edi
jg 0x408770
mov eax, dword [ebp - 0x704]
mov edi, dword [ebp - 0x700]
mov ebx, dword [ebp - 0x708]
movzx ecx, byte [eax + edi]
mov dword [ebx + 0x66a8], ecx
mov eax, dword [ebx + 0x66a8]
inc dword [ebp - 0x704]
cmp eax, 7
ja 0x4088db
mov ebx, 1
mov cl, al
shl ebx, cl
test bl, 0x96
jne 0x408b55
test bl, 0x48
jne 0x408c2c
mov eax, dword [ebp - 0x704]
mov ecx, dword [ebp - 0x704]
mov edx, dword [ebp - 0x708]
movzx ebx, byte [eax + edi]
lea esi, [ecx + 1]
mov dword [edx + 0x68c4], ebx
mov dword [ebp - 0x704], esi
mov edx, dword [ebp - 0x704]
movzx eax, byte [edi + ecx + 1]
mov ecx, dword [ebp - 0x708]
lea ebx, [edx + 1]
mov dword [ecx + 0x68cc], eax
mov dword [ebp - 0x704], ebx
movzx esi, byte [edi + edx + 1]
movzx eax, byte [ecx + 0x68cc]
movzx edi, byte [ecx + 0x68c4]
mov dword [ecx + 0x68c8], esi
shl eax, 8
or edi, eax
movzx ebx, byte [ecx + 0x68c8]
inc dword [ebp - 0x704]
shl ebx, 0x10
or edi, ebx
mov dword [ecx + 0x68d0], edi
mov dword [esp], edi
call sub.GDI32.dll_CreateSolidBrush
mov esi, dword [ebp - 0x708]
sub esp, 4
mov dword [esi + 0x68d4], eax
jmp 0x408457
mov esi, 0x41227e
mov ecx, 0x68
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
jmp 0x408354
mov esi, dword [ebp - 0x70c]
mov dword [esp], esi
xor esi, esi
call sub.KERNEL32.dll_FreeResource
mov edx, dword [ebp - 0x708]
xor ecx, ecx
sub esp, 4
mov dword [ebp - 0x704], ecx
mov edi, dword [edx + 0x520]
test edi, edi
jle 0x408a82
mov ebx, edx
add ebx, 0x528
lea eax, [ebp - 0x458]
mov edi, 0x412205
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
xor edx, edx
sub esp, 8
mov dword [ebp - 0x710], edx
mov edx, dword [ebp - 0x704]
cmp edx, dword [ebp - 0x6fc]
jg 0x408a3e
mov eax, dword [ebp - 0x700]
cmp byte [edx + eax], 0xd
jmp 0x408a3c
movzx eax, byte [edx + eax]
mov ecx, dword [ebp - 0x710]
mov byte [ecx + ebp - 0x458], al
inc ecx
mov dword [ebp - 0x710], ecx
mov ecx, dword [ebp - 0x704]
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x6fc]
mov dword [ebp - 0x704], eax
mov edx, eax
jg 0x408a3e
mov eax, dword [ebp - 0x700]
cmp byte [eax + ecx + 1], 0xd
jne 0x408a00
mov dword [esp], ebx
mov ecx, dword [ebp - 0x710]
xor eax, eax
lea edi, [ebp - 0x458]
inc esi
add ebx, 0x104
mov byte [ecx + ebp - 0x458], al
mov dword [esp + 4], edi
call sub.KERNEL32.dll_lstrcpyA
add dword [ebp - 0x704], 2
sub esp, 8
mov edx, dword [ebp - 0x708]
cmp dword [edx + 0x520], esi
jg 0x4089c0
mov esi, dword [ebp - 0x708]
xor ebx, ebx
mov dword [esi + 0x66ac], ebx
jmp 0x408457
sub dl, 0x20
jmp 0x4087b0
mov dword [esp], 0
xor edx, edx
mov ecx, str.Quizz
mov dword [esp + 0xc], edx
mov edi, str.Erreur_dans_le_d
xor ebx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
call sub.USER32.dll_MessageBoxA
mov esi, dword [ebp - 0x708]
sub esp, 0x10
mov dword [esi + 0x520], ebx
jmp 0x40846a
mov ecx, dword [ebp - 0x700]
mov eax, dword [ebp - 0x704]
cmp byte [ecx + eax], 0x7c
je 0x408b28
mov eax, edx
nop
lea esi, [esi]
movzx edx, byte [ecx + eax]
mov al, dl
sub al, 0x61
cmp al, 0x19
jbe 0x408b50
mov al, dl
add al, 0x20
cmp al, 0x1f
jbe 0x408b50
lea esi, [esi]
lea edi, [edi]
mov al, dl
sar al, 4
shl dl, 4
add dl, al
mov byte [ebx], dl
mov eax, dword [esi]
inc ebx
inc eax
mov dword [esi], eax
cmp byte [ecx + eax], 0x7c
jne 0x408af0
mov byte [ebx], 0
lea ecx, [ebp - 0x6f8]
lea ebx, [ebp - 0x238]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
jmp 0x408805
sub dl, 0x20
jmp 0x408b10
xor ebx, ebx
cmp edx, 0
mov dword [ebp - 0x720], ebx
jle 0x4088db
mov eax, dword [ebp - 0x704]
lea edx, [ebp - 0x6f8]
cmp byte [edi + eax], 0x7c
je 0x408b92
mov eax, dword [esi]
lea esi, [esi]
movzx ecx, byte [edi + eax]
mov byte [edx], cl
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [edi + eax], 0x7c
jne 0x408b80
mov byte [edx], 0
lea ebx, [ebp - 0x6f8]
lea edx, [ebp - 0x128]
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], edx
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov edi, dword [ebp - 0x708]
mov ecx, dword [edi + 0x6b34]
xor edi, edi
test ecx, ecx
jmp 0x408bdf
mov edi, ecx
mov ecx, dword [ecx + 0x418]
inc ebx
test ecx, ecx
setne dl
cmp ebx, dword [ebp - 0x720]
setbe al
test al, dl
jne 0x408bc6
lea eax, [ebp - 0x128]
lea ebx, [edi + 0x30c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
inc dword [ebp - 0x720]
sub esp, 8
mov edi, dword [ebp - 0x708]
mov ecx, dword [ebp - 0x720]
cmp dword [edi + 0x520], ecx
jle 0x408c21
mov edi, dword [ebp - 0x700]
jmp 0x408b66
mov edi, dword [ebp - 0x700]
jmp 0x4088db
xor ecx, ecx
cmp edx, 0
mov dword [ebp - 0x724], ecx
jle 0x4088db
mov ebx, dword [ebp - 0x704]
lea edx, [ebp - 0x6f8]
cmp byte [edi + ebx], 0x7c
je 0x408c72
mov eax, dword [esi]
jmp 0x408c60
movzx eax, byte [edi + eax]
mov byte [edx], al
mov eax, dword [esi]
inc edx
inc eax
mov dword [esi], eax
cmp byte [edi + eax], 0x7c
jne 0x408c60
mov byte [edx], 0
lea ecx, [ebp - 0x6f8]
lea edx, [ebp - 0x128]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.KERNEL32.dll_lstrcpyA
mov ebx, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x6f8]
mov edx, dword [ebp - 0x700]
inc ebx
mov dword [esi], ebx
mov edi, dword [ebp - 0x704]
cmp byte [edx + edi], 0x7c
je 0x408cc2
mov eax, ebx
nop
movzx ebx, byte [edx + eax]
mov byte [ecx], bl
mov eax, dword [esi]
inc ecx
inc eax
mov dword [esi], eax
cmp byte [edx + eax], 0x7c
jne 0x408cb0
mov byte [ecx], 0
lea edx, [ebp - 0x6f8]
xor ebx, ebx
mov dword [esp + 4], edx
lea edi, [ebp - 0x238]
mov dword [esp], edi
xor edi, edi
call sub.KERNEL32.dll_lstrcpyA
inc dword [esi]
sub esp, 8
mov eax, dword [ebp - 0x708]
mov ecx, dword [eax + 0x6b34]
test ecx, ecx
jmp 0x408d0f
mov edi, ecx
mov ecx, dword [ecx + 0x418]
inc ebx
test ecx, ecx
setne dl
cmp ebx, dword [ebp - 0x724]
setbe al
test al, dl
jne 0x408cf6
lea edx, [ebp - 0x128]
lea eax, [edi + 0x30c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
inc dword [ebp - 0x724]
sub esp, 8
mov ebx, dword [ebp - 0x708]
mov ecx, dword [ebp - 0x724]
cmp dword [ebx + 0x520], ecx
jle 0x408c21
mov edi, dword [ebp - 0x700]
jmp 0x408c3d