Function at 0x4f4db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54e778
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
mov dword [esp + 0x18], ecx
xor esi, esi
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
mov dword [eax], esi
call fcn.004a92c0
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
cmp eax, 0x10
mov edx, dword [esp + 0x30]
jb 0x4f4fc3
cmp edx, esi
mov edi, edx
mov dword [esp + 0x14], edi
je 0x4f4e51
cmp eax, 0x10
mov ecx, edx
jae 0x4f4e38
lea ecx, [esp + 0x30]
cmp ecx, edi
ja 0x4f4e51
cmp eax, 0x10
mov ecx, edx
jae 0x4f4e47
lea ecx, [esp + 0x30]
mov ebx, dword [esp + 0x40]
add ecx, ebx
cmp edi, ecx
jbe 0x4f4e62
call fcn.0052a951
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
cmp eax, 0x10
mov ecx, edx
jae 0x4f4e6d
lea ecx, [esp + 0x30]
lea edi, [ecx + ebx]
cmp edi, esi
je 0x4f4e94
cmp eax, 0x10
mov ecx, edx
jae 0x4f4e7f
lea ecx, [esp + 0x30]
cmp ecx, edi
ja 0x4f4e94
cmp eax, 0x10
mov ecx, edx
jae 0x4f4e8e
lea ecx, [esp + 0x30]
add ecx, ebx
cmp edi, ecx
jbe 0x4f4ea5
call fcn.0052a951
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
cmp eax, 0x10
jb 0x4f4fd2
test edx, edx
mov esi, edx
je 0x4f4ed4
cmp eax, 0x10
mov ecx, edx
jae 0x4f4ebf
lea ecx, [esp + 0x30]
cmp ecx, esi
ja 0x4f4ed4
cmp eax, 0x10
mov eax, edx
jae 0x4f4ece
lea eax, [esp + 0x30]
add eax, ebx
cmp esi, eax
jbe 0x4f4ed9
call fcn.0052a951
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, esi
call fcn.004c3d50
mov eax, dword [esp + 0x44]
mov ebx, 0x10
add esp, 0x14
cmp dword [esp + 0x44], ebx
jae 0x4f4f14
lea eax, [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4f4f58
mov edx, dword [edi + 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
je 0x4f4f58
mov edx, dword [edi + 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jne 0x4f4f62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
push edx
call sym.RtHDVCpl.exe_long_int___cdecl_ConvertErrorWIN_unsigned_long_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], ebx
jb 0x4f4f8c
mov eax, dword [esp + 0x30]
push eax
call fcn.0050364e
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0052944d
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ecx
mov edi, ecx
jmp 0x4f4e2d
lea esi, [esp + 0x30]
jmp 0x4f4eb4