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

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 8], 0
call fcn.004045a0
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebx + 0xb4], eax
jne 0x404ec1
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x34]
push esi
push edi
mov dword [ebx + 0x70], ecx
mov ecx, 3
mov edi, 0x47e284
mov esi, eax
xor edx, edx
mov dword [ebx + 0xb0], eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404fe4
lea edx, [eax + 3]
mov ecx, 3
mov edi, 0x47e280
mov esi, edx
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x404f11
mov esi, edx
mov ecx, 3
mov edi, 0x47e27c
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404fe0
mov esi, dword [esp + 0x38]
push esi
mov dword [ebx + 0xb4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x404f63
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
lea esi, [ebx + 0xac]
push esi
push 0x48a7a4
push eax
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
mov eax, dword [esp + 0x10]
push eax
je 0x404f6f
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x9ec
mov esi, eax
push 0x58
push esi
call edi
mov ecx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push ecx
call ebp
push 0x9ec
push 0x5a
push esi
mov dword [ebx + 0x60], eax
call edi
mov edx, dword [esp + 0x18]
push eax
push edx
call ebp
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x1c]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4051bd
mov ebp, dword [esp + 0x38]
lea esi, [eax + 6]
mov dword [ebx + 0x7c], 1
mov dword [ebx + 0xb8], esi
movzx ecx, byte [esi + 4]
mov edx, ecx
sar edx, 7
cmp edx, 1
jne 0x40502c
and ecx, 7
inc ecx
shl edx, cl
lea ecx, [edx + edx*2]
mov dword [ebx + 0x78], ecx
movzx ecx, byte [esi + 5]
lea edx, [eax + ecx*2]
lea eax, [ecx + edx + 0xd]
movzx edx, byte [eax]
xor ecx, ecx
mov ch, byte [eax + 2]
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edx
mov dword [ebx + 0x68], ecx
movzx eax, word [esi]
mov dword [ebx + 0x60], eax
movzx ecx, word [esi + 2]
mov dword [ebx + 0x64], ecx
mov ecx, ebx
xor edi, edi
xor esi, esi
call fcn.00403260
call fcn.00403a50
test eax, eax
je 0x405060
lea ecx, [ecx]
mov ecx, ebx
inc esi
call fcn.00403a50
test eax, eax
jne 0x405050
cmp esi, edi
jne 0x405079
push ebp
mov dword [ebx + 0xb4], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
cmp esi, 1
jne 0x4050d4
push ebp
mov dword [ebx + 0xb4], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x10]
push edx
push edi
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x404f63
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
lea eax, [ebx + 0xac]
push eax
push 0x48a7a4
push edi
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
mov eax, dword [esp + 0x10]
push eax
jne 0x404f5e
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x4051bd
mov ecx, ebx
call fcn.00403260
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004037a0
mov esi, eax
cmp esi, edi
je 0x40519d
mov edi, dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebp, dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
lea edx, [esp + 0x3c]
push edx
push 1
push esi
mov dword [esp + 0x48], 0
call edi
test eax, eax
je 0x405130
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40516d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push 0x48a7a4
push 0
push ecx
push edx
call ebp
test eax, eax
mov eax, dword [esp + 0x3c]
push eax
je 0x405158
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40516d
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 0xbc]
call fcn.00404e00
lea ecx, [esp + 0x30]
push ecx
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 ecx, ebx
call fcn.004037a0
mov esi, eax
test esi, esi
jne 0x405111
mov ebp, dword [esp + 0x38]
xor edi, edi
push ebp
mov dword [ebx + 0xb4], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebx + 0xbc]
call fcn.00403740
test al, al
jne 0x404f63
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x60]
push eax
push ecx
mov ecx, ebx
call fcn.00403600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8