Function at 0x402080
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x48d10b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0x34], esi
cmp dword [esp + 0xb4], esi
jne 0x4020e9
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.mfc90u.dll_CDC::FromHandle
mov dword [esp + 0xb4], eax
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x68]
call fcn.004899de
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], vtable.CBitmap.0
mov eax, dword [esp + 0xb4]
mov byte [esp + 0xa8], 2
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xbc]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edi
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0xff
mov byte [esp + 0x1b], 0
test eax, eax
je 0x402160
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x6c]
call sub.mfc90u.dll_CDC::Attach
mov edx, dword [esp + 0xb0]
mov eax, dword [edx + 0x20]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.mfc90u.dll_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x6c]
call sub.mfc90u.dll_CDC::SelectObject_2
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + 4]
sub edi, ebp
push edi
sub esi, ebx
push esi
push edx
mov dword [esp + 0x9c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CGdiObject::Attach
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4021d4
push eax
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0xb0]
cmp dword [eax + 0x73c], 0
je 0x402203
add eax, 0x738
je 0x4021ee
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x6c]
push 0xcc0020
push ebp
push ebx
push eax
push edi
push esi
push 0
push 0
push ecx
jmp 0x402220
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + 4]
push 0xcc0020
push ebp
push ebx
push eax
mov eax, dword [esp + 0x7c]
push edi
push esi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
sub eax, ebp
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x40], ecx
xor ecx, ecx
xor edx, edx
mov ebp, eax
mov dword [esp + 0x44], eax
sub eax, esi
cmp dword [ebx + 0x360], ecx
mov dword [esp + 0x3c], edx
mov edi, ecx
mov ebx, esi
jne 0x402277
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jmp 0x40228d
mov dword [esp + 0x58], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov ebp, esi
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x1c]
push edx
push eax
mov edi, esi
mov dword [esp + 0x24], ecx
call sub.gdiplus.dll_GdipCreateFromHDC
fld dword [0x4a8a8c]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
push 0
push ecx
fstp dword [esp]
push 0xff739ab4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], 0
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x64], eax
lea eax, [esp + 0x48]
push eax
push 0xff739ab4
mov dword [esp + 0x50], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x1c]
push 2
push ecx
call sub.gdiplus.dll_GdipSetSmoothingMode
fld1
lea edx, [esp + 0x78]
push edx
push 0
push ecx
fstp dword [esp]
push 0xff50a3f0
mov dword [esp + 0x88], 0
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x5c]
push eax
push 0xff50a3f0
mov dword [esp + 0x64], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
sub ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
sub eax, edx
dec eax
push eax
dec ebx
push ebx
mov ebx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x58]
push edx
push ecx
push ebx
mov dword [esp + 0xb0], ecx
call sub.gdiplus.dll_GdipFillEllipseI
mov ecx, dword [esp + 0xb0]
mov eax, 0x26
sub eax, dword [ecx + 0x360]
lea eax, [eax + eax*2]
cmp dword [ecx + eax*8], 1
jne 0x4023eb
fld1
lea ecx, [esp + 0x28]
push ecx
push 0
push ecx
fstp dword [esp]
push 0xff6cb3f5
mov dword [esp + 0x38], 0
call sub.gdiplus.dll_GdipCreatePen1
lea edx, [esp + 0x30]
push edx
push 0xff6cb3f5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
sub ebp, edx
sub edi, ecx
dec ebp
push ebp
dec edi
push edi
push edx
push ecx
push eax
push ebx
mov dword [esp + 0x68], eax
call sub.gdiplus.dll_GdipFillEllipseI
mov eax, dword [esp + 0x50]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeletePen
jmp 0x40240e
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
sub ebp, ecx
sub edi, eax
sub ebp, 3
push ebp
sub edi, 3
push edi
inc ecx
push ecx
inc eax
push eax
push edx
push ebx
call sub.gdiplus.dll_GdipDrawEllipseI
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x94]
push eax
push esi
push 0
push 0
push ecx
push eax
mov eax, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0xd4]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
cmp dword [esp + 0x34], 0
je 0x402464
mov esi, dword [esi + 4]
mov edx, dword [esp + 0xb0]
mov eax, dword [edx + 0x20]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x98]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x78]
push edx
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x48]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x60]
push ecx
call sub.gdiplus.dll_GdipDeletePen
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
mov byte [esp + 0xa8], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CBitmap.0
call fcn.004066b0
lea ecx, [esp + 0x68]
mov byte [esp + 0xa8], 0
call sub.mfc90u.dll_CDC::CDC
push 0x401dc0
push 2
push 0x18
lea edx, [esp + 0xd8]
push edx
mov dword [esp + 0xb8], 0xffffffff
call fcn.0048a51b
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x50