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

Disassembly:
push 0xffffffffffffffff
push 0x501eb8
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.004e21d0
push 0x10
mov byte [esp + 0x6c], 3
call esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004e21d0
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
mov byte [esp + 0x6c], 4
call edi
mov esi, eax
cmp esi, ebx
je 0x4e2522
push 1
call fcn.004e19d0
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x30], esi
call fcn.004d4ed0
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 0x4e2522
push 1
call fcn.004e19d0
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x40], esi
call fcn.004d4ed0
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.004e2030
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.004a2810
test eax, eax
je 0x4e2522
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.004a2810
test eax, eax
je 0x4e2522
push edi
lea ecx, [esp + 0x2c]
call fcn.0040848a
mov ebp, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040848a
cmp ebp, ebx
mov dword [esp + 0x70], eax
je 0x4e25e5
cmp eax, ebx
je 0x4e25e5
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.004e10a0
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.004084a1
push 0xffffff
lea ecx, [esp + 0x2c]
call fcn.004e10a0
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.004084a1
push esi
lea ecx, [esp + 0x2c]
call fcn.0040848a
test eax, eax
je 0x4e2505
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.004ec700
push 0xffffff
lea ecx, [esp + 0x2c]
call fcn.004e10a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.004e2110
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.004084a1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.004e2110
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.004084a1
push esi
lea ecx, [esp + 0x2c]
call fcn.004e2110
push edi
lea ecx, [esp + 0x2c]
call fcn.004e10a0
mov ecx, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040848a
push ebp
lea ecx, [esp + 0x2c]
call fcn.0040848a
mov ebp, vtable.CDC.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 3
call fcn.004073ae
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call fcn.004073ae
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 1
call fcn.004073ae
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 0x4e258f
mov esi, eax
call fcn.004f2070
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e257d
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [eax + 0x1c]
call fcn.004d4cf0
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 0x4e25d0
mov esi, eax
call fcn.004f2070
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e25be
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [eax + 0x1c]
call fcn.004d4cf0
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.004073ae
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call fcn.004073ae
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 1
call fcn.004073ae
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], bl
call fcn.004e1b00
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], 0xffffffff
call fcn.004e1b00
jmp 0x4e25d0