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

Disassembly:
push 0xffffffffffffffff
push 0x5009b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
xor ebx, ebx
push esi
mov ebp, vtable.CDC.0
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.CBitmap.0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
mov byte [esp + 0x6c], 2
call esi
push eax
lea ecx, [esp + 0x24]
call fcn.004e0d20
push 0x10
mov byte [esp + 0x6c], 3
call esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004e0d20
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
mov byte [esp + 0x6c], 4
call edi
mov esi, eax
cmp esi, ebx
je 0x4e1072
push 1
call fcn.004e0520
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x30], esi
call fcn.004d3e90
lea ecx, [esp + 0x28]
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x2c]
call dword [eax + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x4e1072
push 1
call fcn.004e0520
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x40], esi
call fcn.004d3e90
lea ecx, [esp + 0x38]
mov dword [eax], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x3c]
call dword [eax + 0xc]
mov edi, dword [esp + 0x70]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x48]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, dword [esp + 0x74]
mov ecx, esi
call fcn.004e0b80
movzx eax, word [esp + 0x5a]
movzx ecx, word [esp + 0x58]
mov edx, dword [esp + 0x50]
push ebx
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004a1bb0
test eax, eax
je 0x4e1072
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ebx
push 1
push 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004a1bb0
test eax, eax
je 0x4e1072
push edi
lea ecx, [esp + 0x2c]
call fcn.0040842e
mov ebp, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040842e
cmp ebp, ebx
mov dword [esp + 0x70], eax
je 0x4e1135
cmp eax, ebx
je 0x4e1135
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
push eax
lea ecx, [esp + 0x2c]
call fcn.004dfbf0
mov ecx, dword [esp + 0x4c]
push 0xcc0020
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
mov edi, eax
mov eax, dword [esp + 0x60]
push eax
push ecx
push ebx
push ebx
lea ecx, [esp + 0x58]
call fcn.00408445
push 0xffffff
lea ecx, [esp + 0x2c]
call fcn.004dfbf0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push 0x1100a6
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push eax
push ecx
push ebx
push ebx
lea ecx, [esp + 0x58]
call fcn.00408445
push esi
lea ecx, [esp + 0x2c]
call fcn.0040842e
test eax, eax
je 0x4e1055
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
push ebx
push ebx
lea ecx, [esp + 0x3c]
call fcn.004eb250
push 0xffffff
lea ecx, [esp + 0x2c]
call fcn.004dfbf0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.004e0c60
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0xe20746
push ebx
push ebx
mov esi, eax
lea eax, [esp + 0x44]
push eax
push ecx
push edx
push 1
push 1
lea ecx, [esp + 0x48]
call fcn.00408445
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.004e0c60
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push 0xe20746
push ebx
push ebx
lea ecx, [esp + 0x44]
push ecx
push edx
push eax
push ebx
push ebx
lea ecx, [esp + 0x48]
call fcn.00408445
push esi
lea ecx, [esp + 0x2c]
call fcn.004e0c60
push edi
lea ecx, [esp + 0x2c]
call fcn.004dfbf0
mov ecx, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040842e
push ebp
lea ecx, [esp + 0x2c]
call fcn.0040842e
mov ebp, vtable.CDC.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 3
call fcn.004072e2
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call fcn.004072e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 1
call fcn.004072e2
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
mov byte [esp + 0x68], bl
mov dword [esp + 0x38], ebp
je 0x4e10df
mov esi, eax
call fcn.004f0bc0
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e10cd
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [eax + 0x1c]
call fcn.004d3cb0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
call dword [eax + 0x14]
push esi
mov dword [esp + 0x40], ebx
call edi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x28], ebp
je 0x4e1120
mov esi, eax
call fcn.004f0bc0
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e110e
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [eax + 0x1c]
call fcn.004d3cb0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
call dword [edx + 0x14]
push esi
mov dword [esp + 0x30], ebx
call edi
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 3
call fcn.004072e2
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call fcn.004072e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 1
call fcn.004072e2
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], bl
call fcn.004e0650
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], 0xffffffff
call fcn.004e0650
jmp 0x4e1120