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

Disassembly:
push 0xffffffffffffffff
push 0x5009f8
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 0x4e14fd
push 1
call fcn.004e0520
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x38], esi
call fcn.004d3e90
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 0x4e14fd
push 1
call fcn.004e0520
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x48], esi
call fcn.004d3e90
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 0x4e14fd
push 1
call fcn.004e0520
push esi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x28], esi
call fcn.004d3e90
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 0x4e14fd
mov edi, dword [esp + 0x8c]
mov ecx, edi
call fcn.004e0b80
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.004a1bb0
test eax, eax
je 0x4e14fd
push 0x531b44
push 1
push 1
push 8
push 8
lea ecx, [esp + 0x24]
call fcn.004a1bb0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a1b70
lea ecx, [esp + 0x10]
call fcn.004e0b80
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.004a1bb0
push esi
lea ecx, [esp + 0x34]
call fcn.0040842e
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.0040842e
cmp esi, ebx
mov ebp, eax
mov dword [esp + 0x88], ebp
je 0x4e15ff
cmp ebp, ebx
je 0x4e15ff
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.004dfbf0
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.00408445
push 0xffffff
lea ecx, [esp + 0x34]
call fcn.004dfbf0
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.00408445
push edi
lea ecx, [esp + 0x34]
call fcn.004dfbf0
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040842e
mov edi, eax
cmp edi, ebx
je 0x4e14da
mov ecx, dword [esp + 0x90]
push ecx
lea ecx, [esp + 0x24]
call fcn.004dfcf0
mov edx, dword [esp + 0x94]
push edx
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.004dfbf0
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.004a1af0
push ebp
lea ecx, [esp + 0x24]
call fcn.004dfcf0
mov ecx, dword [esp + 0x94]
push ecx
lea ecx, [esp + 0x24]
call fcn.004dfbf0
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.00408445
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.00408445
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.00408445
mov ebp, dword [esp + 0x88]
push edi
lea ecx, [esp + 0x24]
call fcn.0040842e
push ebp
lea ecx, [esp + 0x44]
call fcn.0040842e
push esi
lea ecx, [esp + 0x34]
call fcn.0040842e
mov ebp, vtable.CDC.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 3
call fcn.004072e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 2
call fcn.004072e2
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 0x4e1566
mov esi, eax
call fcn.004f0bc0
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e1554
mov edx, dword [esp + 0x24]
push edx
lea ecx, [eax + 0x1c]
call fcn.004d3cb0
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 0x4e15a6
mov esi, eax
call fcn.004f0bc0
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e1594
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [eax + 0x1c]
call fcn.004d3cb0
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 0x4e15ea
mov esi, eax
call fcn.004f0bc0
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4e15d8
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [eax + 0x1c]
call fcn.004d3cb0
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.004072e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 2
call fcn.004072e2
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 1
call fcn.004e0650
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], bl
call fcn.004e0650
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.004e0650
jmp 0x4e15ea