Function at 0x4f0650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405168
mov eax, dword [ebp - 8]
call fcn.00405168
xor eax, eax
push ebp
push 0x4f08e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00404cac
xor eax, eax
push ebp
push 0x4f086a
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00405178
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4f0860
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0x4f063c
push 0x10
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_EnumResourceNamesA
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4f0708
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 0xc]
call fcn.00404cac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f089e
push 0x10
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
mov dword [ebp - 0x14], ebx
push ebx
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0
jbe 0x4f0860
mov eax, dword [ebp - 0x1c]
call fcn.00402a88
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
call fcn.00408564
xor eax, eax
push ebp
push 0x4f0859
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4f08f4
mov eax, dword [ebp - 0x34]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4f07cb
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00408558
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x4f0918
call fcn.0040c1cc
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x4f0918
call fcn.0040c1cc
push 0x4f0928
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0x4f0940
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00405040
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
call fcn.0040556c
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 8]
call fcn.0040556c
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x28]
call fcn.004055f8
mov eax, dword [ebp - 0x44]
call fcn.0040557c
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4f083a
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
call fcn.00404ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0860
mov eax, dword [ebp - 0x34]
call fcn.00402aa8
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f0888
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4f089e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004f0314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f08ea
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00405404
lea eax, [ebp - 0x40]
call fcn.00404cac
lea eax, [ebp - 0x28]
call fcn.004053ec
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404cd0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cd0
ret