Function at 0x4a76d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x501966
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [ecx + 0x20]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, dword [edi + 0x18]
push ecx
call sub.MFC42.DLL_CDC::FromHandle
add edi, 0x1c
lea edx, [esp + 0xc]
push edi
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
push 0xffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_CBrush::CBrush
xor edi, edi
mov dword [esp + 0x1c], 0x510254
mov dword [esp + 0xa0], edi
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
mov byte [esp + 0xb0], 1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
lea edx, [esp + 0x2c]
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectClipRgn
mov edx, dword [0x534608]
mov eax, dword [0x53460c]
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call fcn.004d5c00
push eax
push 0x3ff00000
push edi
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x9c]
call fcn.004d5c00
push eax
mov ecx, 0x5345a8
call fcn.004bf430
mov ecx, dword [0x5345a0]
mov edx, dword [0x5345a4]
mov dword [0x534608], edi
mov dword [0x53460c], 0x3ff00000
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x4b4]
mov dword [esp + 0x48], edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x4b4]
mov edi, eax
cmp dword [ecx + 0x50], 4
jne 0x4a785c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
add ecx, 0xf
add edx, 0xffffffec
mov dword [0x5345a0], ecx
mov dword [0x5345a4], edx
jmp 0x4a7957
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x4a78d2
push 0xbff921fb
push 0x54442d18
mov ecx, 0x5345a8
call fcn.004bf5a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
add ecx, 0xf
add edx, 0xffffffc9
mov dword [0x5345a0], ecx
mov dword [0x5345a4], edx
mov ecx, dword [esi + 0x4b4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test eax, eax
je 0x4a78c0
push 0
mov ecx, 0x534598
call fcn.004961b0
mov ecx, dword [esp + 0x10]
add ecx, 0x37
mov dword [0x5345a4], ecx
jmp 0x4a7957
fild dword [esp + 0x18]
fld qword [0x534608]
fmul qword [0x511960]
jmp 0x4a794b
push 0
push 0
push 0x3ff00000
push 0
push 0
push 0
lea ecx, [esp + 0x68]
call fcn.004d5c00
lea edx, [esp + 0x50]
mov ecx, 0x534598
push edx
call fcn.004961b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
add eax, 0x55
add ecx, 0xfffffff1
mov dword [0x5345a0], eax
mov dword [0x5345a4], ecx
mov ecx, dword [esi + 0x4b4]
mov edx, dword [ecx]
call dword [edx + 0x1c]
test eax, eax
je 0x4a793b
mov eax, dword [esp + 0x14]
push 0
add eax, 0xffffffab
mov ecx, 0x534598
mov dword [0x5345a0], eax
call fcn.004961b0
jmp 0x4a7957
fild dword [esp + 0x18]
fld qword [0x534608]
fmul qword [0x508270]
fsubp st(1)
call sub.MSVCRT.dll__ftol
mov dword [0x5345a4], eax
mov ecx, dword [esi + 0x4b4]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [esi + 0x4b4]
lea eax, [eax + eax*4]
lea ecx, [edi + eax*2]
mov eax, dword [edx + 0x1c]
push ecx
push eax
mov ecx, 0x534598
call fcn.00496090
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x80]
call fcn.004d5c00
mov eax, dword [esi + 0x4b4]
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0x80]
mov edx, dword [eax]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov dword [0x534608], eax
mov eax, dword [esp + 0x48]
mov esi, 0x508630
mov dword [0x53460c], ecx
mov dword [0x5345a0], edx
mov dword [0x5345a4], eax
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa0], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c], 0x508238
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0xa0], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x98]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4