Function at 0x49bf0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
mov eax, 0x4fd751
call fcn.004d2f7d
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.00408850
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jne 0x49bfeb
lea eax, [ebp - 0x38]
push eax
call fcn.0045c056
lea eax, [ebp - 0x38]
push eax
push 0x49be6e
push 0xe
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x49bf75
lea esi, [ebp - 0x38]
call fcn.0045c2de
push dword [ebp - 0x38]
call fcn.004cb380
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004087f0
xor eax, eax
call fcn.004d3057
ret
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
sar eax, 2
cmp eax, esi
je 0x49bf54
ja 0x49bf89
call fcn.004cb4f7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x10]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x49bfcc
cmp dword [esi + 0xc], 0
jl 0x49bfbd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49bfbd
call fcn.00408780
mov edi, eax
mov eax, esi
call fcn.00408830
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x49bfcc
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x10]
call fcn.00408500
mov edi, dword [ebp - 0x10]
push edi
call fcn.004ce851
pop ecx
lea esi, [ebp - 0x38]
mov dword [ebp + 0xc], eax
call fcn.0045c2de
push dword [ebp - 0x38]
call fcn.004cb380
pop ecx
xor esi, esi
jmp 0x49bfee
mov edi, dword [ebp - 0x10]
cmp dword [ebp + 8], esi
je 0x49bf65
cmp dword [ebp + 0xc], esi
jne 0x49c005
cmp dword [edi - 0xc], esi
je 0x49bf65
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x49bf65
mov dword [ebx], esi
cmp dword [ebp + 0xc], esi
jbe 0x49c02d
movzx eax, word [ebp + 0xc]
push 0xe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x49c04c
cmp dword [edi - 0xc], esi
je 0x49c1ba
push 0xe
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x49c1b8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x49c1b8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x49c1b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49c1a9
mov cx, word [eax]
mov word [ebp - 0x18], cx
mov cx, word [eax + 2]
mov word [ebp - 0x16], cx
movzx ecx, word [eax + 4]
mov word [ebp - 0x14], cx
movzx ecx, cx
mov esi, ecx
shl esi, 4
add esi, 6
mov dword [ebp + 0xc], ecx
test ecx, ecx
jle 0x49c0b9
add eax, 0xe
add esi, dword [eax]
add eax, 0xe
dec ecx
jne 0x49c0b1
push 0x54cfe0
push esi
call fcn.004cc21d
pop ecx
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x49bf65
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov edi, dword [ebx]
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
mov ebx, dword [ebp + 0xc]
shl ebx, 4
add edi, 6
add ebx, 6
test eax, eax
jle 0x49c19f
mov esi, dword [ebp - 0x1c]
add edi, 2
add esi, 7
mov dword [ebp + 0xc], eax
mov al, byte [esi - 1]
mov byte [edi - 2], al
mov al, byte [esi]
mov byte [edi - 1], al
mov al, byte [esi + 1]
mov byte [edi], al
mov al, byte [esi + 2]
mov byte [edi + 1], al
mov ax, word [esi + 3]
mov word [edi + 2], ax
mov ax, word [esi + 5]
mov word [edi + 4], ax
mov eax, dword [esi + 7]
mov dword [edi + 6], eax
mov dword [edi + 0xa], ebx
movzx eax, word [esi + 0xb]
push 3
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
cmp dword [esi + 7], eax
jne 0x49c18d
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x49c184
push dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.004d5790
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
add ebx, dword [esi + 7]
add edi, 0x10
add esi, 0xe
dec dword [ebp + 0xc]
jne 0x49c102
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], 1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x18], 0
jne 0x49c1c9
xor esi, esi
mov eax, dword [ebx]
cmp eax, esi
je 0x49c1c9
push eax
call fcn.004cc1ec
pop ecx
mov dword [ebx], esi
lea ecx, [ebp - 0x10]
call fcn.004087f0
mov eax, dword [ebp - 0x18]
jmp 0x49bf6f