Function at 0x40202f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402053
xor al, al
jmp 0x4022ad
mov byte [0x40c7d0], 0
push 0
push 0x401fce
push 0xe
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40207f
mov dword [ebp - 8], 0
jmp 0x402088
mov edx, dword [0x40c7d4]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x4022a1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
push 0xe
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4020d8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x402100
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402124
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40214c
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0xe
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40218b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov dword [ebp - 0x1c], 0
jmp 0x40219d
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax + 4]
cmp dword [ebp - 0x1c], ecx
jge 0x402283
push 3
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0xe
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax + edx + 0x12]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4021e6
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40220e
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402240
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0xe
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + ecx + 0x12]
push eax
push 3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40227e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
jmp 0x402194
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x4022a1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4022ad
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov esp, ebp
pop ebp
ret