Function at 0x4fb1a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push esi
push 0x4fb760
push 0xe
push edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x4fb1e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x2c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
jbe 0x4fb201
push 0xe
push dword [esi + 0x14]
push edi
call ebx
test eax, eax
jne 0x4fb20e
movzx eax, word [esi]
push 0xe
push eax
push edi
call ebx
test eax, eax
je 0x4fb1cf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4fb230
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4fb21a
movzx ebx, word [eax + 4]
lea eax, [ebx - 1]
shl eax, 5
add eax, 0x28
push eax
call fcn.0052d28b
mov esi, eax
add esp, 4
test esi, esi
je 0x4fb21a
mov dword [esi + 4], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4fb31d
mov ecx, dword [ebp - 8]
lea ebx, [esi + 0x14]
add ecx, 0x12
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ecx
jmp 0x4fb280
movzx eax, word [ecx]
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4fb380
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4fb380
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0xc], ecx
mov dword [eax + 4], ecx
call fcn.0052d28b
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4fb387
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00531580
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, 0xfffffff4
push eax
call fcn.004fb670
test eax, eax
je 0x4fb347
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
add dword [ebp + 0xc], 0x20
add ecx, 0xe
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp eax, dword [esi + 4]
jb 0x4fb280
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp + 8]
push esi
call fcn.004fb3e0
mov edi, eax
test edi, edi
je 0x4fb39f
push esi
call fcn.0052adae
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x4fb368
push dword [ebx]
call fcn.0052adae
inc edi
lea ebx, [ebx + 0x20]
add esp, 4
cmp edi, dword [esi + 4]
jb 0x4fb355
push esi
call fcn.0052adae
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.0052adae
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x4fb3c3
lea ebx, [esi + 0x14]
lea esp, [esp]
push dword [ebx]
call fcn.0052adae
inc edi
lea ebx, [ebx + 0x20]
add esp, 4
cmp edi, dword [esi + 4]
jb 0x4fb3b0
push esi
call fcn.0052adae
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8