Function at 0x451950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebx, eax
mov eax, 0x46c158
push esi
push edi
cmp eax, 2
jne 0x45199a
call fcn.0042874d
mov eax, dword [eax + 0xc]
push 0xc3
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
test eax, eax
jne 0x451985
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea esi, [ebx + 0xd0]
mov dword [esi + 4], eax
xor eax, eax
call fcn.00402f70
jmp 0x451a2a
mov dword [esp + 0x10], 0
call fcn.0042874d
mov esi, dword [eax + 0xc]
push 0x46c158
push 0xc3
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45197b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebp
push eax
call fcn.004377c0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x451a1c
mov edx, dword [esp + 0x10]
push edx
lea eax, [ebx + 0xd0]
push eax
call fcn.00402b80
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebx + 0x70], 0
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ebx + 0xe0]
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], edx
je 0x451b5c
mov eax, dword [ebx + 0xd4]
push eax
call fcn.0042951f
mov edi, eax
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x20]
imul edx, dword [esp + 0x24]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [edi + 4]
mov ebx, eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x24]
push ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov edx, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x10], esi
test edx, edx
jle 0x451b44
mov eax, dword [esp + 0x1c]
jmp 0x451ab0
movzx ecx, word [esp + 0x2a]
shr ecx, 3
imul ecx, eax
imul ecx, esi
add ecx, ebx
xor ebp, ebp
test eax, eax
jle 0x451b37
movzx edi, byte [ecx + 3]
movzx esi, byte [ecx]
imul esi, edi
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 2], al
mov eax, dword [esp + 0x1c]
inc ebp
add ecx, 4
cmp ebp, eax
jl 0x451ac6
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
inc esi
cmp esi, edx
mov dword [esp + 0x10], esi
jl 0x451ab0
imul edx, dword [esp + 0x24]
mov ecx, dword [edi + 4]
push ebx
push edx
push ecx
call dword [sym.imp.GDI32.dll_SetBitmapBits]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret