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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ef42a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6089a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_347
xor ebx, ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CBitmap.0
push ebx
lea esi, [esp + 0x68]
mov byte [esp + 0x84], 1
call fcn.004bd310
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x4c0588
xor eax, eax
jmp 0x4c058b
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1270
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4c05d6
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_5727
mov ecx, dword [edi + 0x58]
push ebx
push 0x624c18
push 0x624784
push ebx
push ecx
call sub.MSVCR80.dll___RTDynamicCast
mov ebx, eax
add esp, 0x14
cmp dword [ebx + 0x44], 3
mov dword [esp + 0x18], ebx
jne 0x4c063c
mov esi, dword [ebx + 0x3c]
call fcn.004ac840
cmp dword [eax + 0x68], 0
je 0x4c062b
mov edx, dword [eax + 0x64]
mov ecx, dword [eax + 0x60]
push edx
mov edx, dword [eax + 0x5c]
push ecx
push edx
mov ecx, esi
call fcn.00488760
add esp, 0xc
jmp 0x4c062d
mov eax, esi
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC80U.DLL_Ordinal_2255
cmp dword [ebx + 0x144], 0
jbe 0x4c06d2
cmp dword [ebx + 0xbc], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], ecx
jne 0x4c0698
mov esi, dword [edi + 0x114]
add esi, eax
mov eax, dword [ebx + 0x138]
add eax, dword [edi + 0x118]
mov dword [esp + 0x5c], esi
add eax, edx
cmp eax, ecx
mov dword [esp + 0x60], eax
jle 0x4c0698
mov dword [esp + 0x60], ecx
mov esi, dword [ebx + 0x124]
call fcn.004ac840
cmp dword [eax + 0x68], 0
je 0x4c06c1
mov edx, dword [eax + 0x64]
mov ecx, dword [eax + 0x60]
push edx
mov edx, dword [eax + 0x5c]
push ecx
push edx
mov ecx, esi
call fcn.00488760
add esp, 0xc
jmp 0x4c06c3
mov eax, esi
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC80U.DLL_Ordinal_2255
cmp dword [edi + 0x154], 0
jne 0x4c06f5
mov eax, dword [edi + 0x14c]
test eax, eax
je 0x4c06f5
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00489380
mov dword [edi + 0x154], eax
mov eax, dword [edi + 0x154]
test eax, eax
je 0x4c070b
mov edx, dword [esp + 0x28]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_5727
xor esi, esi
mov dword [esp + 0x14], esi
lea esp, [esp]
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x4c07bd
mov eax, dword [edi + 0xe8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4c07bd
test ecx, ecx
je 0x4c0754
mov eax, dword [edi + 0xe8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4c075a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0xe4]
mov esi, dword [eax + esi*4]
xor ebx, ebx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4c07ab
mov eax, dword [esi + 0x18]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x4c07ab
test ecx, ecx
je 0x4c0788
mov eax, dword [esi + 0x18]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4c078e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + ebx*4]
mov edx, dword [edi]
mov edx, dword [edx + 0x198]
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call edx
add ebx, 1
jmp 0x4c0765
add dword [esp + 0x14], 1
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
jmp 0x4c0720
cmp dword [edi + 0x158], 0
jne 0x4c07e0
mov eax, dword [edi + 0x150]
test eax, eax
je 0x4c07e0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00489380
mov dword [edi + 0x158], eax
mov eax, dword [edi + 0x158]
test eax, eax
je 0x4c07f6
mov edx, dword [esp + 0x28]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
test dword [edi + 0x100], 0x1000000
je 0x4c08d2
mov ecx, dword [ebx + 0x144]
test ecx, ecx
jbe 0x4c0878
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x60], edx
mov edx, dword [ebx + 0x138]
mov ebx, dword [ebx + 0x124]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
add edx, ecx
add edx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edx
call fcn.004ac840
cmp dword [eax + 0x68], 0
je 0x4c0867
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x5c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00488760
add esp, 0xc
jmp 0x4c0869
mov eax, ebx
push eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC80U.DLL_Ordinal_2255
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [edi + 0xbc]
test ecx, ecx
je 0x4c08d2
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4c08d2
test ecx, ecx
je 0x4c08ac
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4c08b2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0xbc]
mov ecx, dword [eax + esi*4]
mov edx, dword [edi]
mov edx, dword [edx + 0x198]
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call edx
add esi, 1
jmp 0x4c0880
xor esi, esi
xor ecx, ecx
xor edx, edx
xor eax, eax
test dword [edi + 0x100], 0x1000000
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
je 0x4c0937
push eax
push 0x624c18
push 0x624784
push eax
mov eax, dword [edi + 0x58]
push eax
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [edi + 0x20]
add esp, 0x14
lea ecx, [esp + 0x44]
push ecx
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x138]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x28]
push 0xcc0020
push ecx
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
sub eax, ecx
push eax
mov eax, dword [ebp + 8]
sub edx, esi
push edx
push ecx
mov ecx, dword [eax + 4]
push esi
push ecx
call edi
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
push 0xcc0020
push edx
push esi
push ebx
sub eax, edx
push eax
sub ecx, esi
push ecx
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push esi
push eax
call edi
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBitmap.0
call fcn.00406940
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC80U.DLL_Ordinal_602
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4