Function at 0x408320
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 0x40841c
cmp dword [ebp - 0x718], 1
je 0x4089e5
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.00409e60
test eax, eax
je 0x4084ab
mov ecx, 1
jmp 0x408475
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 0x408447
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.00409e60
test eax, eax
jne 0x408b0d
cmp dword [ebp - 0x718], 1
je 0x4085a4
jle 0x4084e2
cmp dword [ebp - 0x718], 2
je 0x4089fc
inc dword [ebp - 0x718]
cmp dword [ebp - 0x718], 2
jle 0x408390
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x718]
test eax, eax
jne 0x4084c7
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 0x408534
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 0x408522
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 0x408585
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 0x408573
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 0x4084c7
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 0x408622
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 0x408610
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 0x408682
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 0x408670
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 0x4086e2
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 0x4086d0
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 0x408742
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 0x408730
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 0x4087a2
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 0x408790
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 0x408903
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 0x408838
mov eax, dword [esi]
lea esi, [esi]
movzx edx, byte [ecx + eax]
mov al, dl
sub al, 0x61
cmp al, 0x19
jbe 0x408b05
mov al, dl
add al, 0x20
cmp al, 0x1f
jbe 0x408b05
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 0x408800
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 0x408b47
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 0x4088a2
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 0x408890
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.00408220
mov ecx, dword [ebp - 0x708]
mov edx, dword [ecx + 0x520]
cmp edx, edi
jg 0x4087e0
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, 8
ja 0x40894e
mov ebx, 1
mov cl, al
shl ebx, cl
test ebx, 0x196
jne 0x408bc5
test bl, 0x48
jne 0x408c9c
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 0x4084c7
mov esi, 0x41227e
mov ecx, 0x68
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
jmp 0x4083c4
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 0x408af2
mov ebx, edx
add ebx, 0x528
lea eax, [ebp - 0x458]
mov edi, 0x412209
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 0x408aae
mov eax, dword [ebp - 0x700]
cmp byte [edx + eax], 0xd
jmp 0x408aac
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 0x408aae
mov eax, dword [ebp - 0x700]
cmp byte [eax + ecx + 1], 0xd
jne 0x408a70
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 0x408a33
mov ebx, dword [ebp - 0x708]
xor esi, esi
mov dword [ebx + 0x66ac], esi
jmp 0x4084c7
sub dl, 0x20
jmp 0x408820
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 0x4084da
mov ecx, dword [ebp - 0x700]
mov eax, dword [ebp - 0x704]
cmp byte [ecx + eax], 0x7c
je 0x408b98
mov eax, edx
nop
lea esi, [esi]
movzx edx, byte [ecx + eax]
mov al, dl
sub al, 0x61
cmp al, 0x19
jbe 0x408bc0
mov al, dl
add al, 0x20
cmp al, 0x1f
jbe 0x408bc0
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 0x408b60
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 0x408875
sub dl, 0x20
jmp 0x408b80
xor ebx, ebx
cmp edx, 0
mov dword [ebp - 0x720], ebx
jle 0x40894e
mov eax, dword [ebp - 0x704]
lea edx, [ebp - 0x6f8]
cmp byte [edi + eax], 0x7c
je 0x408c02
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 0x408bf0
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 0x408c4f
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 0x408c36
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 0x408c91
mov edi, dword [ebp - 0x700]
jmp 0x408bd6
mov edi, dword [ebp - 0x700]
jmp 0x40894e
xor ecx, ecx
cmp edx, 0
mov dword [ebp - 0x724], ecx
jle 0x40894e
mov ebx, dword [ebp - 0x704]
lea edx, [ebp - 0x6f8]
cmp byte [edi + ebx], 0x7c
je 0x408ce2
mov eax, dword [esi]
jmp 0x408cd0
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 0x408cd0
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 0x408d32
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 0x408d20
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 0x408d7f
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 0x408d66
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 0x408c91
mov edi, dword [ebp - 0x700]
jmp 0x408cad