Function at 0x409af0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [0x82f304]
sub esp, 0x38
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a0f1
mov ecx, dword [0x82f304]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40a0f1
xor edi, edi
push 2
mov dword [0x42671c], edi
call fcn.00404210
add esp, 4
test eax, eax
jne 0x409b3f
cmp dword [0x426480], edi
je 0x40a0f1
mov eax, dword [0x954430]
push ebx
push ebp
lea edx, [esp + 0x34]
push esi
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov ecx, dword [0x954430]
sub ebp, esi
push ecx
mov dword [esp + 0x30], ebp
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x34], eax
mov eax, dword [0x82f354]
cmp eax, edi
je 0x409b97
mov eax, dword [0x82d7ac]
mov ecx, dword [0x954430]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00409250
add esp, 0xc
jmp 0x409bb0
mov edx, dword [0x82f34c]
mov ecx, dword [0x82d7ac]
lea eax, [esp + 0x38]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [0x82d8dc], edi
jne 0x409d11
mov eax, dword [0x426720]
xor ecx, ecx
mov edx, eax
mov cl, ah
and edx, 0xff
and ecx, 0xff
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
mov dword [esp + 0x28], ecx
xor ecx, ecx
shr eax, 0x10
fstp dword [esp + 0x1c]
fild dword [esp + 0x28]
and eax, 0xff
mov dword [esp + 0x28], eax
mov eax, dword [0x426724]
fstp dword [esp + 0x18]
fild dword [esp + 0x28]
mov edx, eax
mov cl, ah
and edx, 0xff
and ecx, 0xff
fstp dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x28]
shr eax, 0x10
and eax, 0xff
xor esi, esi
fsub dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
fmul dword [0x423508]
fstp dword [esp + 0x28]
fild dword [esp + 0x24]
fsub dword [esp + 0x18]
fmul dword [0x423508]
fstp dword [esp + 0x24]
fild dword [esp + 0x20]
fsub dword [esp + 0x14]
fmul dword [0x423508]
fstp dword [esp + 0x20]
fild dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x14]
call fcn.0041bc44
fld st(0)
fmul dword [esp + 0x24]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.0041bc44
fmul dword [esp + 0x28]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x1c]
call fcn.0041bc44
mov edx, dword [0x82d7a4]
and eax, 0xff
or ebx, eax
push ebx
push esi
push 1
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, 0x28
mov dword [esp + 0x10], esi
jl 0x409c66
mov eax, dword [0x82d7a8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
fld dword [esp + 0x14]
call fcn.0041bc44
fld dword [esp + 0x18]
xor ebx, ebx
mov bh, al
call fcn.0041bc44
fld dword [esp + 0x1c]
mov bl, al
shl ebx, 8
call fcn.0041bc44
and eax, 0xff
or ebx, eax
push ebx
push 1
push edi
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [0x82d7a8], eax
mov eax, dword [0x82d8dc]
inc eax
mov dword [0x82d8dc], eax
mov ecx, dword [0x82d7a8]
mov edx, dword [0x82d7ac]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
push ecx
push edx
sub esi, ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x3c]
sar ebx, 1
push edi
lea ecx, [ebx + eax - 8]
mov eax, dword [0x82d7ac]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [ebx + ecx - 8]
mov ecx, dword [0x82d7ac]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
push 0x954ce0
call fcn.004050c0
add esp, 4
test esi, esi
jle 0x409dd0
mov ebp, 0x954ce0
mov edx, dword [0x82d7a4]
xor eax, eax
mov al, byte [ebp]
push 0xcc0020
push 0
push 1
shr eax, 3
mov ecx, ebx
push edx
mov edx, dword [esp + 0x4c]
sub ecx, eax
push eax
push 1
lea eax, [ecx + edx - 7]
mov ecx, dword [esp + 0x50]
mov edx, dword [0x82d7ac]
add ecx, edi
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
add ebp, 2
cmp edi, esi
jl 0x409d88
mov ebp, dword [esp + 0x2c]
mov eax, dword [0x82d8d8]
test eax, eax
jne 0x409f9f
mov eax, dword [0x426728]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
and edx, 0xff
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
xor edx, edx
shr eax, 0x10
fstp dword [esp + 0x1c]
fild dword [esp + 0x2c]
and eax, 0xff
mov dword [esp + 0x2c], eax
mov eax, dword [0x42672c]
fstp dword [esp + 0x18]
fild dword [esp + 0x2c]
mov ecx, eax
mov dl, ah
and ecx, 0xff
and edx, 0xff
fstp dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
shr eax, 0x10
fsub dword [esp + 0x1c]
and eax, 0xff
xor edi, edi
mov dword [esp + 0x10], edi
fmul dword [0x4234c8]
fstp dword [esp + 0x28]
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
fsub dword [esp + 0x18]
fmul dword [0x4234c8]
fstp dword [esp + 0x24]
fild dword [esp + 0x2c]
fsub dword [esp + 0x14]
fmul dword [0x4234c8]
fstp dword [esp + 0x20]
fild dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x14]
call fcn.0041bc44
fld st(0)
fmul dword [esp + 0x24]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.0041bc44
fmul dword [esp + 0x28]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x1c]
call fcn.0041bc44
and eax, 0xff
or ebx, eax
mov eax, dword [0x82d7a4]
push ebx
push edi
push 3
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x409e87
mov dword [esp + 0x10], 0
mov edi, 0xf
fild dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x14]
call fcn.0041bc44
fld st(0)
fmul dword [esp + 0x24]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.0041bc44
fmul dword [esp + 0x28]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x1c]
call fcn.0041bc44
mov ecx, dword [0x82d7a4]
and eax, 0xff
or ebx, eax
push ebx
push edi
push 5
push ecx
call dword [sym.imp.GDI32.dll_SetPixel]
mov edx, dword [esp + 0x10]
inc edx
dec edi
cmp edi, 0xffffffff
mov dword [esp + 0x10], edx
jg 0x409eed
mov edx, dword [0x82d7b0]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
fld dword [esp + 0x14]
call fcn.0041bc44
fld dword [esp + 0x18]
xor ebx, ebx
mov bh, al
call fcn.0041bc44
fld dword [esp + 0x1c]
mov bl, al
shl ebx, 8
call fcn.0041bc44
and eax, 0xff
or ebx, eax
push ebx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [0x82d7b0], eax
mov eax, dword [0x82d8d8]
inc eax
mov dword [0x82d8d8], eax
mov eax, dword [0x82d7b0]
mov ecx, dword [0x82d7ac]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp + ebp*2]
mov ecx, dword [esp + 0x38]
cdq
and edx, 3
push 0
add eax, edx
mov edx, dword [esp + 0x40]
mov ebx, eax
sar ebx, 2
lea eax, [ebx + edx]
mov edx, dword [0x82d7ac]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [ebx + eax]
mov eax, dword [0x82d7ac]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
push 0x954ce0
call fcn.00405110
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
add esp, 4
xor edi, edi
test esi, esi
jle 0x40a058
movsx eax, byte [edi + 0x954ce0]
cdq
and edx, 7
mov ecx, dword [0x82d7a4]
add eax, edx
push 0xcc0020
sar eax, 3
cdq
xor eax, edx
push 0
sub eax, edx
push 3
mov edx, ebx
push ecx
push eax
sub edx, eax
mov eax, dword [esp + 0x50]
push 1
lea ecx, [edx + eax + 1]
mov edx, dword [esp + 0x50]
mov eax, dword [0x82d7ac]
add edx, edi
push ecx
push edx
push eax
call ebp
inc edi
cmp edi, esi
jl 0x40a00f
xor edi, edi
test esi, esi
jle 0x40a0a8
movsx eax, byte [edi + 0x954ce0]
cdq
and edx, 7
mov ecx, 0x10
add eax, edx
push 0xcc0020
sar eax, 3
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x82d7a4]
sub ecx, eax
push ecx
push 5
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push 1
add edx, edi
lea ecx, [ebx + eax]
mov eax, dword [0x82d7ac]
push ecx
push edx
push eax
call ebp
inc edi
cmp edi, esi
jl 0x40a05e
mov ecx, dword [esp + 0x30]
mov edx, dword [0x82d7ac]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov eax, dword [0x82d7ac]
push 0xcc0020
push 0
push 0
sub ecx, edx
push eax
push ecx
push esi
mov esi, dword [esp + 0x4c]
push 0
push 0
push esi
call ebp
mov edx, dword [0x954430]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x38
ret