Function at 0x406f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4491e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4625e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x40714f
cmp ebx, esi
je 0x40714f
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406f70
sub eax, edx
sar eax, 1
je 0x40714f
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x40714f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406f95
sub eax, edx
sar eax, 1
je 0x40714f
cmp dword [ebp + 0x10], esi
je 0x40714f
push ebx
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x406ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push str.Find_Resource_Fail_____s____s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0xc
mov dword [ebp - 0x1c], esi
push 0x45cadc
lea edx, [ebp - 0x1c]
push edx
call fcn.0043527b
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x407037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Get_Resource_size_Fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
mov dword [ebp - 0x20], esi
push 0x45cadc
lea ecx, [ebp - 0x20]
push ecx
call fcn.0043527b
push edi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x407077
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Load_Resource_Fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
mov dword [ebp - 0x24], esi
push 0x45cadc
lea eax, [ebp - 0x24]
push eax
call fcn.0043527b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4070b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Lock_Resource_Fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
mov dword [ebp - 0x28], esi
push 0x45cadc
lea ecx, [ebp - 0x28]
push ecx
call fcn.0043527b
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4070f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
push esi
push esi
push str.Allocate_Memory_Fail___size_0x_08x____d_
mov ecx, edi
mov edx, 0x467200
call fcn.00405e30
add esp, 0xc
mov dword [ebp - 0x2c], edi
push 0x45cadc
lea edx, [ebp - 0x2c]
push edx
call fcn.0043527b
push esi
push 0
push edi
call fcn.00431f90
push esi
push ebx
push edi
call fcn.00431c20
add esp, 0x18
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x407115
mov dword [eax], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x407131
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x30], 0x57
push 0x45cadc
lea ecx, [ebp - 0x30]
push ecx
call fcn.0043527b
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x407180
push str.GetResource
mov edx, 0x467200
call fcn.00405e30
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40718d
ret