Function at 0x40a9a4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc74
fld qword [0x41e340]
fld qword [ebp + 8]
fcomp st(1)
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x48], esi
fnstsw ax
sahf
jbe 0x40a9ca
fstp qword [ebp + 8]
jmp 0x40a9cc
fstp st(0)
fld qword [ebp + 8]
fcomp qword [0x41e468]
fnstsw ax
sahf
jae 0x40a9df
fldz
fstp qword [ebp + 8]
fld qword [ebp + 8]
push 0xa
lea eax, [ebp - 0x64]
fstp qword [esi + 0x68]
push 0
push eax
call fcn.00415510
fld qword [ebp + 8]
call fcn.004164fc
push eax
lea eax, [ebp - 0x64]
push 0x421fe0
push eax
call fcn.00415cc0
lea eax, [ebp - 0x64]
push 0x421fdc
push eax
call fcn.00415580
add esp, 0x20
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call edi
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call edi
lea eax, [ebp - 0x20]
push 0x10
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00416690
fld qword [ebp + 8]
fcomp qword [0x41e340]
mov ecx, dword [ebp - 0x34]
add esp, 0xc
push 2
pop eax
add dword [ebp - 0x3c], eax
sub dword [ebp - 0x30], eax
add dword [ebp - 0x38], eax
sub ecx, eax
fnstsw ax
sahf
je 0x40aa93
sub ecx, dword [ebp - 0x3c]
inc ecx
mov dword [ebp - 0x24], ecx
fild dword [ebp - 0x24]
fmul qword [ebp + 8]
fmul qword [0x41e408]
call fcn.004164fc
mov ecx, dword [ebp - 0x20]
sub ecx, eax
dec ecx
mov dword [ebp - 0x34], ecx
jmp 0x40aa99
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40aaa9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
inc eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [ebp - 0x54], eax
call esi
push 0xff0000
mov dword [ebp - 0x50], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov dword [ebp - 0x2c], eax
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x10
mov dword [ebp - 0x28], eax
call edi
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x14
mov dword [ebp - 0x44], eax
call edi
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
push eax
push 1
push 0
call edi
push 0
push 1
push 0
mov dword [ebp - 0x24], eax
call edi
push dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
push ebx
call esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x44]
push ebx
call esi
push edi
mov dword [ebp - 0x58], eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp - 0x10]
push ebx
call edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 0x40]
push ebx
call esi
mov eax, dword [ebp - 4]
push 0
dec eax
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0xc]
inc eax
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
push ebx
call edi
mov eax, dword [ebp - 0xc]
inc eax
push eax
mov eax, dword [ebp - 8]
dec eax
push eax
push ebx
call edi
push dword [ebp - 0x24]
push ebx
call esi
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 0x2c]
push ebx
call esi
push 3
pop eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x2c]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
dec eax
dec eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x10]
push 0x25
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00415b30
pop ecx
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [ebp - 0x14]
xor edi, edi
sub eax, dword [ebp - 0x1c]
push 0xcc0020
push edi
push edi
inc eax
push ebx
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
inc eax
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp + 0x10], edi
jne 0x40ac8c
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x48]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x40ac8f
mov edi, dword [ebp - 0x48]
push dword [ebp - 0x58]
push ebx
call esi
push dword [ebp - 0x4c]
push ebx
call esi
push dword [ebp - 0x50]
push ebx
call esi
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x40]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x54]
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
fld qword [edi + 0x68]
fcomp qword [0x41e340]
fnstsw ax
sahf
jb 0x40ad3e
mov ebx, 0xc00
lea eax, [ebp - 0xc74]
push ebx
push eax
push str.Finish
push str.BtnFinish
push dword [edi + 0x2c]
mov esi, 0x425c0c
mov ecx, esi
call fcn.0040d8c4
lea eax, [ebp - 0xc74]
mov ecx, edi
push eax
push dword [edi + 0x74]
call fcn.00407290
lea eax, [ebp - 0xc74]
push ebx
push eax
push str.Succeed
push str.StaSucceed
mov ecx, esi
push dword [edi + 0x2c]
call fcn.0040d8c4
lea eax, [ebp - 0xc74]
mov ecx, edi
push eax
push dword [edi + 0x70]
call fcn.00407290
pop edi
pop esi
pop ebx
leave
ret 0xc