Function at 0x40d900
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4557f7
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x476028]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x476028]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x2b
jne 0x40d95f
mov ecx, esi
mov byte [eax], 1
call fcn.0040dcd0
jmp 0x40dca8
cmp ecx, 0xf
jne 0x40db43
push 0x40
mov byte [eax], 1
xor ebx, ebx
lea eax, [esp + 0x48]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [esi + 0x40]
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
push edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x14], eax
call sub.MFC80U.DLL_Ordinal_2361
lea ecx, [esp + 0x24]
mov edi, eax
call sub.MFC80U.DLL_Ordinal_347
cmp edi, ebx
mov dword [esp + 0x98], ebx
jne 0x40d9b7
xor eax, eax
jmp 0x40d9ba
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1270
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CBitmap.0
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov edx, dword [edi + 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]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call sub.MFC80U.DLL_Ordinal_5633
mov edx, dword [edi + 8]
push 6
push edx
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call sub.MFC80U.DLL_Ordinal_2362
cmp dword [eax + 4], 0
je 0x40da47
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_5638
push 0xffffff
lea ecx, [esp + 0x18]
call sub.MFC80U.DLL_Ordinal_326
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x40]
push 4
push eax
push 0x318
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [edi + 4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
je 0x40dabd
mov ebx, dword [ebx + 4]
mov ecx, dword [esp + 0x28]
push ebx
push ecx
call sub.MFC80U.DLL_Ordinal_5633
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_1920
lea ecx, [esp + 0x1c]
call sub.MFC80U.DLL_Ordinal_1925
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBrush.0
call fcn.00407b40
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBitmap.0
call fcn.00407b40
lea ecx, [esp + 0x24]
mov dword [esp + 0x98], 0xffffffff
call sub.MFC80U.DLL_Ordinal_602
jmp 0x40dca8
cmp ecx, 0x14
jne 0x40dbb1
push edi
mov byte [eax], 1
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call sub.MFC80U.DLL_Ordinal_2361
mov ecx, dword [esi + 0x40]
mov ebx, eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xffffff
lea ecx, [esp + 0x18]
call sub.MFC80U.DLL_Ordinal_326
test eax, eax
je 0x40db80
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBrush.0
call fcn.00407b40
mov ecx, dword [esi + 0x40]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x40dca8
cmp ecx, 0x2c
jne 0x40dbbe
mov byte [eax], 1
jmp 0x40dca8
cmp ecx, 0x2b0f
jne 0x40dbf9
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x50]
mov dword [esp + 0x9c], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x40dca8
cmp ecx, 0x39
je 0x40dbb6
cmp ecx, 0x200
jne 0x40dc74
mov eax, dword [esi + 0x54]
movsx ecx, dx
shr edx, 0x10
sub eax, ecx
movsx edi, dx
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jge 0x40dc2d
mov eax, dword [esi + 0x58]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jl 0x40dca8
lea eax, [esp + 0x10]
push eax
push edi
push ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edi
call fcn.0040e410
cmp eax, 0xffffffff
je 0x40dca8
cmp dword [esi + 0x4c], eax
je 0x40dca8
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x188
push ecx
mov dword [esi + 0x4c], eax
call edi
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x40]
push 0
push edx
push 0x186
push eax
call edi
jmp 0x40dc9a
cmp ecx, 5
jne 0x40dc92
push eax
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push edi
mov ecx, esi
call fcn.004149d0
mov eax, dword [esi + 0x40]
push 0
push 0
push eax
jmp 0x40dca2
cmp ecx, 0x20a
jne 0x40dca8
mov ecx, dword [esi + 0x40]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00452313
mov esp, ebp
pop ebp
ret 0x14