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

Disassembly:
push 0xffffffffffffffff
push 0x501ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
xor ebx, ebx
push esi
mov ebp, vtable.CDC.0
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.CBitmap.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CBrush.0
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
mov byte [esp + 0x84], 4
call edi
mov esi, eax
cmp esi, ebx
je 0x4e29ad
push 1
call fcn.004e19d0
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x38], esi
call fcn.004d4ed0
lea ecx, [esp + 0x30]
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x34]
call dword [eax + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x4e29ad
push 1
call fcn.004e19d0
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x48], esi
call fcn.004d4ed0
lea ecx, [esp + 0x40]
mov dword [eax], ecx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x44]
call dword [eax + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x4e29ad
push 1
call fcn.004e19d0
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x28], esi
call fcn.004d4ed0
lea ecx, [esp + 0x20]
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x24]
call dword [eax + 0xc]
mov esi, dword [esp + 0x88]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4e29ad
mov edi, dword [esp + 0x8c]
mov ecx, edi
call fcn.004e2030
movzx eax, word [esp + 0x72]
movzx ecx, word [esp + 0x70]
mov edx, dword [esp + 0x68]
push ebx
push eax
mov eax, dword [esp + 0x6c]
push ecx
push edx
push eax
mov ecx, edi
call fcn.004a2810
test eax, eax
je 0x4e29ad
push 0x53407c
push 1
push 1
push 8
push 8
lea ecx, [esp + 0x24]
call fcn.004a2810
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a27d0
lea ecx, [esp + 0x10]
call fcn.004e2030
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push ebx
push 1
push 1
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.004a2810
push esi
lea ecx, [esp + 0x34]
call fcn.0040848a
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.0040848a
cmp esi, ebx
mov ebp, eax
mov dword [esp + 0x88], ebp
je 0x4e2aaf
cmp ebp, ebx
je 0x4e2aaf
mov edx, dword [esp + 0x34]
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
push eax
lea ecx, [esp + 0x34]
call fcn.004e10a0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push 0xcc0020
push ebx
push ebx
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
push ebx
push ebx
lea ecx, [esp + 0x60]
call fcn.004084a1
push 0xffffff
lea ecx, [esp + 0x34]
call fcn.004e10a0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push 0xee0086
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
push ebx
push ebx
lea ecx, [esp + 0x60]
call fcn.004084a1
push edi
lea ecx, [esp + 0x34]
call fcn.004e10a0
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040848a
mov edi, eax
cmp edi, ebx
je 0x4e298a
mov ecx, dword [esp + 0x90]
push ecx
lea ecx, [esp + 0x24]
call fcn.004e11a0
mov edx, dword [esp + 0x94]
push edx
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.004e10a0
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x18]
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x54]
mov dword [esp + 0x60], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004a2750
push ebp
lea ecx, [esp + 0x24]
call fcn.004e11a0
mov ecx, dword [esp + 0x94]
push ecx
lea ecx, [esp + 0x24]
call fcn.004e10a0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push 0x660046
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push ebx
push ebx
lea ecx, [esp + 0x40]
call fcn.004084a1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push 0x8800c6
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
push ebx
push ebx
lea ecx, [esp + 0x40]
call fcn.004084a1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push 0x660046
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push ebx
push ebx
lea ecx, [esp + 0x40]
call fcn.004084a1
mov ebp, dword [esp + 0x88]
push edi
lea ecx, [esp + 0x24]
call fcn.0040848a
push ebp
lea ecx, [esp + 0x44]
call fcn.0040848a
push esi
lea ecx, [esp + 0x34]
call fcn.0040848a
mov ebp, vtable.CDC.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 3
call fcn.004073ae
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 2
call fcn.004073ae
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
mov byte [esp + 0x80], 1
mov dword [esp + 0x20], ebp
je 0x4e2a16
mov esi, eax
call fcn.004f2070
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e2a04
mov edx, dword [esp + 0x24]
push edx
lea ecx, [eax + 0x1c]
call fcn.004d4cf0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [eax + 0x14]
push esi
mov dword [esp + 0x28], ebx
call edi
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0x40], ebp
je 0x4e2a56
mov esi, eax
call fcn.004f2070
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e2a44
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [eax + 0x1c]
call fcn.004d4cf0
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
call dword [edx + 0x14]
push esi
mov dword [esp + 0x48], ebx
call edi
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x30], ebp
je 0x4e2a9a
mov esi, eax
call fcn.004f2070
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e2a88
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [eax + 0x1c]
call fcn.004d4cf0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [edx + 0x14]
push esi
mov dword [esp + 0x38], ebx
call edi
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 3
call fcn.004073ae
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 2
call fcn.004073ae
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 1
call fcn.004e1b00
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], bl
call fcn.004e1b00
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.004e1b00
jmp 0x4e2a9a