Function at 0x10046950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x60]
push edi
mov dword [esp + 0x10], 1
mov esi, dword [eax + 0x18]
mov eax, dword [esp + 0x44]
mov ebp, dword [ecx + 0xf0]
test eax, eax
je 0x10046bfb
mov edi, dword [esp + 0x48]
test edi, edi
je 0x10046bfb
cmp dword [ebp], 0
je 0x10046bfb
cmp dword [esi], 0
je 0x10046bfb
call fcn.1004fff0
mov edx, dword [ebx + 0x60]
mov ecx, dword [esp + 0x4c]
push ecx
push 0
mov word [edx + 0xec], ax
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 0x60]
push edi
push edx
push ebx
mov dword [eax + 8], 0
call fcn.10048160
add esp, 0x14
mov dword [esp + 0x40], eax
test eax, eax
jne 0x10046bb4
test byte [ebx], 3
je 0x10046a6b
mov eax, dword [esi]
cmp eax, 0x68570309
je 0x100469f1
cmp eax, 0x86753090
jne 0x10046a18
mov eax, dword [ebx + 0x5c]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
push ecx
push edx
push esi
call fcn.10036890
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x10], eax
je 0x10046a18
mov eax, str.ColorInImageDimInit
jmp 0x10046bb8
cmp dword [esi], 0x86753090
je 0x10046a2d
mov dword [esp + 0x40], 0xffffff9c
jmp 0x10046bb4
mov edi, dword [ebx + 0x5c]
mov eax, dword [edi + 4]
test eax, eax
je 0x10046a6b
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x10046a6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jge 0x10046a54
neg ecx
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 4]
inc ecx
lea edx, [ecx + ecx*2]
and edx, 0xfffffffc
mov dword [edi + 0x10], edx
mov ecx, dword [eax]
add ecx, eax
mov dword [edi + 0x14], ecx
test byte [ebx], 0xc
je 0x10046ac4
mov eax, dword [ebp]
cmp eax, 0xeddaebfe
je 0x10046a81
cmp eax, 0xdeadbeef
jne 0x10046aae
mov eax, dword [ebx + 0x60]
mov edx, dword [eax + 0xf8]
mov eax, dword [eax + 0xf4]
push edx
push eax
push ebp
call fcn.1002acc0
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x10], eax
je 0x10046aae
mov eax, str.EncodeImageDimInit
jmp 0x10046bb8
cmp dword [ebp], 0xdeadbeef
je 0x10046ac4
mov dword [esp + 0x40], 0xffffff9c
jmp 0x10046bb4
mov al, byte [ebx]
test al, 3
je 0x10046b02
test al, 0xc
jne 0x10046adb
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx + 0x20]
mov dword [edx + 0x14], 0x100a43e0
mov eax, dword [ebx + 0x5c]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
push ecx
push edx
push esi
call fcn.100369d0
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x10], eax
je 0x10046b02
mov eax, str.ColorInSequenceSetup
jmp 0x10046bb8
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x10046b27
mov eax, dword [ebp + 0x104]
test eax, eax
je 0x10046b27
mov dword [eax + 8], 1
mov eax, dword [ebp + 0x104]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 0x104]
test eax, eax
je 0x10046b87
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10046b87
mov ecx, dword [eax]
push 0
mov edx, dword [ecx]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push ecx
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x44]
mov ecx, 0xa
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x104]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [edx + 0xc]
mov dword [esp + 0x40], eax
jmp 0x10046bb4
test byte [ebx], 0xc
je 0x10046bb4
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax + 0xf8]
mov edx, dword [eax + 0xf4]
push ecx
push edx
push ebp
call 0x100c7dbc
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, 1
mov eax, str.EncodeSequenceSetup
jne 0x10046bb8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x10046bdc
mov ecx, dword [esp + 0x10]
cmp ecx, 1
je 0x10046bdc
push eax
push str.VFW_CompressBegin
push ecx
call fcn.10050170
add esp, 0xc
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x60]
mov cx, word [eax + 0xec]
push ecx
call fcn.1004ffe0
mov eax, dword [esp + 0x44]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
pop edi
mov dword [esp + 0x3c], 0xffffff9c
mov eax, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret