Function at 0x40352b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x50
mov eax, 0x43272d
call fcn.00415017
mov edi, edx
movzx ebx, cx
push 0xa
push ebx
push 0
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x403637
cmp dword [ebp + 8], eax
jne 0x403630
push str._could_not_be_found.
lea ecx, [ebp - 0x24]
call fcn.00403276
push 0x16
xor edi, edi
mov dword [ebp - 4], edi
pop eax
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x20]
call fcn.00406ec2
mov esi, eax
push str.The_resource_
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00403276
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00402fba
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00402fba
mov byte [ebp - 4], 5
mov esi, dword [eax]
test esi, esi
je 0x4035cd
mov esi, dword [esi]
jmp 0x4035cf
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov ecx, eax
call fcn.00411083
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4035ed
call fcn.004031e4
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4035fc
call fcn.004031e4
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40360b
call fcn.004031e4
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40361a
call fcn.004031e4
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x403630
call fcn.004031e4
xor al, al
jmp 0x4038a8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403722
cmp dword [ebp + 8], eax
jne 0x403630
push str._could_not_be_loaded.
lea ecx, [ebp - 0x14]
call fcn.00403276
push 0x16
mov dword [ebp - 4], 6
pop eax
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x18]
call fcn.00406ec2
mov esi, eax
push str.The_resource_
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00403276
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.00402fba
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00402fba
mov byte [ebp - 4], 0xb
mov esi, dword [eax]
test esi, esi
je 0x4036bf
mov esi, dword [esi]
jmp 0x4036c1
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov ecx, eax
call fcn.00411083
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4036e0
call fcn.004031e4
and dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4036f0
call fcn.004031e4
and dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x403700
call fcn.004031e4
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x403710
call fcn.004031e4
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x14]
jmp 0x403627
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4037a8
cmp dword [ebp + 8], eax
jne 0x403630
push str._could_not_be_locked_to_memory.
lea ecx, [ebp - 0x14]
call fcn.00403276
push 0x16
pop eax
mov dword [ebp - 4], 0xc
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x18]
call fcn.00406ec2
mov esi, eax
push str.The_resource_
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00403276
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call fcn.00402fba
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00402fba
mov byte [ebp - 4], 0x11
jmp 0x4036b5
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x403891
cmp dword [ebp + 8], eax
jne 0x403630
push str._could_not_be_measured_for_size.
lea ecx, [ebp - 0x24]
call fcn.00403276
mov eax, dword [ebp - 0x28]
push 0x16
mov dword [ebp - 4], 0x12
pop ebx
mov word [ebp - 0x5c], bx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x38]
call fcn.00406ec2
mov esi, eax
push str.The_resource_
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x14
call fcn.00403276
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x15
push ecx
mov ecx, eax
call fcn.00402fba
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00402fba
mov byte [ebp - 4], 0x17
mov esi, dword [eax]
test esi, esi
je 0x403838
mov esi, dword [esi]
jmp 0x40383a
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov ecx, eax
call fcn.00411083
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x403859
call fcn.004031e4
and dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x403869
call fcn.004031e4
and dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x403879
call fcn.004031e4
and dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x403889
call fcn.004031e4
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x5c]
jmp 0x40361d
push edi
push esi
mov ecx, edi
call fcn.004066d3
push esi
push ebx
push dword [edi]
call fcn.00415b70
add esp, 0xc
mov al, 1
call fcn.00414fe0
ret