Function at 0x104c6f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x10dbb0e
call fcn.010a0b4c
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x104c732
test byte [eax + 0x1c], 1
je 0x104c732
cmp byte [eax + 0x19], 5
jb 0x104c732
push dword [ebp + 8]
push 0x1004e18
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [0x10ed030]
mov ecx, dword [0x10efca8]
mov dword [ebp - 0x14], ecx
mov ebx, 0xffff
mov edi, 0x80070000
test ecx, ecx
jne 0x104c760
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x104c757
and eax, ebx
or eax, edi
mov esi, eax
mov eax, dword [0x10ed030]
jmp 0x104c762
xor esi, esi
cmp eax, 0x10ed030
je 0x104c78d
test byte [eax + 0x1c], 2
je 0x104c78d
cmp byte [eax + 0x19], 4
jb 0x104c78d
push esi
push 0x1004e18
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [0x10ed030]
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x104c7f5
movzx eax, word [ebp + 8]
push 0x3f9
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x104c7c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x104c7bf
and eax, ebx
or eax, edi
mov esi, eax
jmp 0x104c7c5
xor esi, esi
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x104c7f5
test byte [eax + 0x1c], 2
je 0x104c7f5
cmp byte [eax + 0x19], 4
jb 0x104c7f5
push esi
push 0x1004e18
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [0x10ed030]
and dword [ebp + 8], 0
cmp dword [ebp - 0x10], 0
je 0x104c856
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x104c824
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x104c820
and eax, ebx
or eax, edi
mov esi, eax
jmp 0x104c826
xor esi, esi
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x104c856
test byte [eax + 0x1c], 2
je 0x104c856
cmp byte [eax + 0x19], 4
jb 0x104c856
push esi
push 0x1004e18
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [0x10ed030]
cmp dword [ebp + 8], 0
je 0x104c96f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x104c885
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x104c881
and eax, ebx
or eax, edi
mov esi, eax
jmp 0x104c887
xor esi, esi
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x104c8ba
test byte [eax + 0x1c], 2
je 0x104c8ba
cmp byte [eax + 0x19], 4
jb 0x104c8ba
push esi
mov ebx, 0x1004e18
push ebx
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [0x10ed030]
jmp 0x104c8bf
mov ebx, 0x1004e18
cmp dword [ebp - 0x14], 0
je 0x104c974
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov esi, edi
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x104c912
test byte [eax + 0x1c], 2
je 0x104c912
cmp byte [eax + 0x19], 4
jb 0x104c912
push esi
push ebx
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [0x10ed030]
test edi, edi
je 0x104c974
cmp eax, 0x10ed030
je 0x104c937
test byte [eax + 0x1c], 2
je 0x104c937
cmp byte [eax + 0x19], 4
jb 0x104c937
push ebx
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
push 0x10f1178
lea ecx, [ebp + 8]
call fcn.0104bdc3
push dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
lea ecx, [ebp + 8]
call fcn.0104c443
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0104c1a4
lea ecx, [edi - 0x10]
call fcn.010280a5
mov eax, dword [0x10ed030]
jmp 0x104c974
mov ebx, 0x1004e18
cmp eax, 0x10ed030
je 0x104c9a5
test byte [eax + 0x1c], 1
je 0x104c9a5
movzx ecx, byte [eax + 0x19]
xor edx, edx
test esi, esi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x104c9a5
push esi
push ebx
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, esi
call fcn.010a0c38
ret 8