Function at 0x4e9cd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], 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
lea eax, [ebp - 4]
call fcn.0040529c
lea eax, [ebp - 8]
call fcn.0040529c
xor eax, eax
push ebp
push 0x4e9f38
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040461c
xor eax, eax
push ebp
push 0x4e9eda
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00404ee4
push eax
call sub.kernel32.dll_LoadLibraryExW
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4e9ed0
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0x4e9cc4
push 0x10
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_EnumResourceNamesW
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4e9d8d
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 0xc]
call fcn.0040461c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e9ef8
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
mov eax, dword [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
call fcn.00407cd4
xor eax, eax
push ebp
push 0x4e9ec9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4e9f48
mov eax, dword [ebp - 0x34]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e9e46
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00407cc8
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x4e9f6c
call fcn.0040a608
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, 0x4e9f6c
call fcn.0040a608
push 0x4e9f7c
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0x4e9f94
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.004049b0
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
call fcn.00404ed4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp - 0x44]
call fcn.00404ee4
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4e9eaa
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
call fcn.0040483c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9ed0
mov eax, dword [ebp - 0x34]
call fcn.004027b0
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 0x4e9ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9f3f
lea eax, [ebp - 0x44]
call fcn.00404d54
lea eax, [ebp - 0x40]
call fcn.0040461c
lea eax, [ebp - 0x28]
call fcn.00404d54
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404640
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d6c
ret