Function at 0x486dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
push edi
mov ebx, esi
mov dword [esp + 0x10], ebp
call fcn.00487150
mov ebx, dword [esp + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esi + 0xcc], eax
cmp eax, ebp
je 0x4870b5
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x88], ecx
mov dword [esi + 0xc8], eax
cmp byte [eax], 0x47
jne 0x486e10
cmp byte [eax + 1], 0x49
jne 0x486e10
cmp byte [eax + 2], 0x46
je 0x486e4c
mov dl, 0x38
cmp byte [eax + 3], dl
jne 0x48706a
cmp byte [eax + 4], 0x37
jne 0x48706a
mov cl, 0x61
cmp byte [eax + 5], cl
jne 0x48706a
cmp byte [eax + 3], dl
jne 0x48706a
cmp byte [eax + 4], 0x39
jne 0x48706a
cmp byte [eax + 5], cl
jne 0x48706a
lea edi, [eax + 6]
mov dword [esi + 0x94], 1
mov dword [esi + 0xd0], edi
movzx ecx, byte [edi + 4]
mov edx, ecx
sar edx, 7
cmp edx, 1
jne 0x486ea0
and ecx, 7
inc ecx
shl edx, cl
lea edx, [edx + edx*2]
mov dword [esi + 0x90], edx
movzx ecx, byte [edi + 5]
lea eax, [eax + ecx*2]
movzx edx, byte [ecx + eax + 0xe]
lea eax, [ecx + eax + 0xd]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esi + 0x7c], ecx
movzx ecx, word [edi]
mov eax, dword [esi + 0x90]
mov dword [esi + 0x74], ecx
movzx edx, word [edi + 2]
add eax, 0xd
mov dword [esi + 0x8c], eax
mov eax, esi
mov dword [esi + 0x78], edx
xor edi, edi
call fcn.004874f0
test eax, eax
je 0x486ee0
lea esp, [esp]
mov eax, esi
inc edi
call fcn.004874f0
test eax, eax
jne 0x486ed0
cmp edi, ebp
jne 0x486ef9
push ebx
mov dword [esi + 0xcc], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
cmp edi, 1
jne 0x486f56
push ebx
mov dword [esi + 0xcc], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4870b5
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0xc4]
push edx
push 0x497ffc
push ebp
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
mov eax, dword [esp + 0x10]
push eax
jne 0x4870ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
jmp 0x487133
mov eax, dword [esi + 0x90]
add eax, 0xd
lea ecx, [esp + 0x30]
push ecx
mov dword [esi + 0x8c], eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, esi
call fcn.004884e0
mov edi, eax
cmp edi, ebp
je 0x48702c
mov ebx, dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebp, dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
jmp 0x486fa0
lea eax, [esp + 0x3c]
push eax
push 1
push edi
mov dword [esp + 0x48], 0
call ebx
test eax, eax
je 0x486fbf
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x486ffc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push 0x497ffc
push 0
push edx
push eax
call ebp
test eax, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
je 0x486fe9
call edx
jmp 0x486ffc
call edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xd4]
push ecx
call fcn.00488a10
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, esi
call fcn.004884e0
mov edi, eax
test edi, edi
jne 0x486fa0
mov ebx, dword [esp + 0x38]
xor ebp, ebp
push ebx
mov dword [esi + 0xcc], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 0xe4]
sub ecx, dword [esi + 0xe0]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x487133
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
push ebx
mov dword [esi + 0xcc], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x10]
push edx
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4870b5
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
lea edi, [esi + 0xc4]
push edi
push 0x497ffc
push ebp
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
mov eax, dword [esp + 0x10]
push eax
je 0x4870c1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x9ec
mov edi, eax
push 0x58
push edi
call ebx
mov edx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push edx
call ebp
push 0x9ec
push 0x5a
push edi
mov dword [esi + 0x74], eax
call ebx
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esi + 0x20]
push edi
push ecx
mov dword [esi + 0x78], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 0x74]
mov ebx, dword [esi + 0x78]
push edx
call fcn.00488790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8