Function at 0x404db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430570
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x43e270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
je 0x404df0
mov ebx, eax
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x404fe1
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x404fe1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404e10
sub eax, edx
sar eax, 1
je 0x404fe1
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x404fe1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404e35
sub eax, edx
sar eax, 1
je 0x404fe1
cmp dword [ebp + 0x14], edi
je 0x404fe1
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x404e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.Find_Resource_Fail_____s____s_
mov ecx, 0x440628
call fcn.00403b70
add esp, 0xc
mov dword [ebp - 0x1c], esi
push 0x43b558
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040eef8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x404ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Get_Resource_size_Fail__
mov ecx, 0x440628
call fcn.00403b70
add esp, 4
mov dword [ebp - 0x20], esi
push 0x43b558
lea edx, [ebp - 0x20]
push edx
call fcn.0040eef8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x404f14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Load_Resource_Fail__
mov ecx, 0x440628
call fcn.00403b70
add esp, 4
mov dword [ebp - 0x24], esi
push 0x43b558
lea eax, [ebp - 0x24]
push eax
call fcn.0040eef8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x404f4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Lock_Resource_Fail__
mov ecx, 0x440628
call fcn.00403b70
add esp, 4
mov dword [ebp - 0x28], esi
push 0x43b558
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040eef8
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x404f8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Allocate_Memory_Fail__
mov ecx, 0x440628
call fcn.00403b70
add esp, 4
mov dword [ebp - 0x2c], esi
push 0x43b558
lea edx, [ebp - 0x2c]
push edx
call fcn.0040eef8
push edi
push 0
push esi
call fcn.0040d9a0
push edi
push ebx
push esi
call fcn.0040dcd0
add esp, 0x18
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x404fae
mov dword [eax], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404fca
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
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 0x14
mov dword [ebp - 0x30], 0x57
push 0x43b558
lea ecx, [ebp - 0x30]
push ecx
call fcn.0040eef8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x405012
push str.CPackage::GetResource
mov edx, 0x440628
call fcn.00403a30
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40501f
ret