Function at 0x4021c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xe
push 0x80
mov dword [ebp - 0x14], ecx
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
push 0
call ebx
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp - 0x18], 0
mov esi, eax
mov eax, dword [0x406034]
sub eax, dword [ebp - 0x10]
je 0x40225d
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
jbe 0x40224d
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x16c]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
jmp 0x402235
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, byte [edx + esi]
jne 0x40224d
inc dword [ebp - 4]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x402232
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
je 0x40225d
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jb 0x402217
and dword [ebp - 4], 0
cmp word [esi + 4], 0
jbe 0x40233c
lea eax, [esi + 6]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push 3
movzx eax, word [eax + 0xc]
push eax
push 0
call edi
push eax
push 0
mov dword [ebp - 0x20], eax
call ebx
push dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x406034]
and dword [ebp - 0xc], 0
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
je 0x402328
xor edx, edx
cmp dword [ebp - 8], edx
jbe 0x4022de
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x16c]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov cl, byte [ecx]
cmp cl, byte [edx + eax]
jne 0x4022de
mov ecx, dword [ebp - 0x20]
inc edx
inc ecx
cmp edx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
jb 0x4022ca
cmp edx, dword [ebp - 8]
je 0x4022f0
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x24]
jb 0x4022b4
jmp 0x402328
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
call fcn.00402179
test eax, eax
je 0x4023ae
push dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x16c]
add eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [0x406454]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [esi + 4]
inc dword [ebp - 4]
add dword [ebp - 0x1c], 0xe
cmp dword [ebp - 4], eax
jb 0x402272
movzx ebx, word [esi + 4]
and word [esi + 4], 0
and dword [ebp - 4], 0
test ebx, ebx
jbe 0x402382
lea edi, [esi + 6]
cmp dword [edi + 8], 0
je 0x402377
movzx eax, word [esi + 4]
cmp eax, dword [ebp - 4]
je 0x402373
imul eax, eax, 0xe
lea ecx, [esi + 6]
push 0xe
add eax, ecx
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
inc word [esi + 4]
inc dword [ebp - 4]
add edi, 0xe
cmp dword [ebp - 4], ebx
jb 0x402350
push dword [0x406454]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov eax, dword [eax + 0x16c]
push esi
add eax, dword [ebp - 0x18]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
push dword [0x406454]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4023a9