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

Disassembly:
push 0xffffffffffffffff
push 0x4e471b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
xor ebx, ebx
xor edi, edi
call fcn.004178f0
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x48]
push eax
call fcn.004e2538
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x48]
push ebx
push eax
mov edx, dword [ecx]
mov dword [esp + 0x138], ebx
call dword [edx + 0xe4]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0xa40]
cmp dword [edx + 0xcc], ebx
jne 0x40c142
lea ecx, [esp + 0x48]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
xor eax, eax
jmp 0x40c52b
push 1
lea eax, [esp + 0x60]
push 1
push eax
mov ecx, esi
call fcn.0040bbc0
mov ecx, dword [eax]
push 2
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [esi + 0x20]
push ebx
add ecx, 0x1fc
call fcn.00417ac0
mov eax, dword [esi + 0x20]
mov dword [esp + 0x1c], ebx
add eax, 0xa40
mov edx, dword [eax]
cmp dword [edx + 0xcc], ebx
jle 0x40c4f8
push ebp
mov eax, dword [eax]
mov ecx, dword [eax + 0xc8]
mov eax, dword [ecx + ebx*4]
lea ecx, [esp + 0x70]
push eax
call fcn.0045a3a0
mov eax, dword [esp + 0x144]
mov byte [esp + 0x134], 1
test eax, eax
je 0x40c1ec
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
push edx
push eax
lea ecx, [esp + 0x78]
call fcn.00460c70
jmp 0x40c22b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
lea eax, [edx + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x2c]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x140]
push edx
mov edx, dword [esp + 0x140]
sar ecx, 1
sar eax, 1
push edx
push ecx
push eax
lea ecx, [esp + 0x80]
call fcn.00461040
test eax, eax
jne 0x40c4cb
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x70]
push 0
push edx
mov ecx, dword [eax + 0x40]
call fcn.0048b500
mov ebp, dword [esi + 0x20]
mov byte [esp + 0x24], 1
mov edx, dword [esp + 0x28]
xor edi, edi
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0xe8]
dec eax
mov word [esp + 0x26], ax
mov eax, dword [ebp + 0x214]
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x3c], ebx
inc ebx
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x210]
cmp ebx, edi
jne 0x40c2ad
cmp ecx, edi
je 0x40c29c
push ecx
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x210], edi
mov dword [ebp + 0x218], edi
mov dword [ebp + 0x214], edi
jmp 0x40c4a6
cmp ecx, edi
jne 0x40c31d
lea edi, [ebx*8]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 0x210], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x18], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x134], 2
je 0x40c2fa
mov ecx, esi
call fcn.004178f0
add esi, 8
dec edi
mov byte [esp + 0x134], 1
mov dword [esp + 0x18], esi
jne 0x40c2e3
mov dword [ebp + 0x218], ebx
mov dword [ebp + 0x214], ebx
jmp 0x40c4a2
mov edi, dword [ebp + 0x218]
cmp ebx, edi
jg 0x40c3a6
cmp eax, ebx
jge 0x40c393
mov edx, ebx
lea edi, [ecx + eax*8]
sub edx, eax
xor eax, eax
mov dword [esp + 0x10], edi
lea ecx, [edx*8]
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x40c384
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x134], 3
je 0x40c372
mov ecx, esi
call fcn.004178f0
add esi, 8
dec edi
mov byte [esp + 0x134], 1
mov dword [esp + 0x10], esi
jne 0x40c35b
mov esi, dword [esp + 0x1c]
mov dword [ebp + 0x214], ebx
jmp 0x40c4a6
jle 0x40c388
sub eax, ebx
mov dword [ebp + 0x214], ebx
mov dword [esp + 0x14], eax
jmp 0x40c4a6
mov ecx, dword [ebp + 0x21c]
test ecx, ecx
jne 0x40c3d4
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x40c3c7
mov ecx, 4
jmp 0x40c3d4
cmp ecx, 0x400
jle 0x40c3d4
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x40c3e3
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
lea edx, [ecx*8]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x214]
mov esi, dword [ebp + 0x210]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
mov dword [esp + 0x18], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x214]
add esp, 4
sub edx, ecx
lea edi, [eax + ecx*8]
xor eax, eax
lea ecx, [edx*8]
mov dword [esp + 0x18], edi
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x40c479
mov esi, dword [esp + 0x18]
lea edi, [edx + 1]
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0x134], 4
je 0x40c467
mov ecx, esi
call fcn.004178f0
add esi, 8
dec edi
mov byte [esp + 0x134], 1
mov dword [esp + 0x18], esi
jne 0x40c450
mov eax, dword [ebp + 0x210]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 0x210], ecx
mov dword [ebp + 0x214], ebx
mov dword [ebp + 0x218], edx
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp + 0x210]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [edx + eax*8]
call fcn.00417900
mov ebx, dword [esp + 0x20]
mov edi, 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 0
call fcn.0045ae80
mov eax, dword [esi + 0x20]
inc ebx
add eax, 0xa40
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
cmp ebx, dword [ecx + 0xcc]
jl 0x40c1a9
pop ebp
mov edx, dword [esi + 0x20]
push 0x8019
mov byte [edx + 0x14c], 1
mov ecx, dword [esi + 0x20]
add ecx, 0x184
call fcn.004d5a30
lea ecx, [esp + 0x48]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, edi
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 0xc