Function at 0x40b250
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [0x4253a4]
sub esp, 8
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
mov esi, ecx
jne 0x40b7a7
mov eax, dword [esi + 0xc1c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push edi
push eax
call ebx
test eax, eax
je 0x40b2c0
mov ecx, dword [esi + 0xc20]
push ecx
call ebx
test eax, eax
je 0x40b2c0
mov edx, dword [esi + 0xc1c]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push ebp
push ebp
push 0x4aa
push 0x51e
push ebp
push edx
call edi
mov eax, dword [esi + 0xc20]
push 1
push ebp
push ebp
push 0x4aa
push 0xfffffd4e
push ebp
push eax
call edi
jmp 0x40b2cc
push ebp
push ebp
push 0x424b90
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esi + 0xc04]
push ecx
call ebx
test eax, eax
je 0x40b2fc
mov edx, dword [esi + 0xc04]
push 1
push 0x1c
push 0x39
push 0x1bc
push 0x145
push edx
mov dword [esi + 0x65c], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, 0x28
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 1
jne 0x40b515
mov eax, dword [esi + 0x648]
mov ecx, esi
push eax
call fcn.00413dd0
lea edx, [esi + 0x676]
mov ebx, 3
mov ecx, 0xfffffff6
lea eax, [esi + 0x44c]
mov edi, 0x14
mov ebp, dword [edx - 6]
cmp ebp, dword [eax - 8]
jne 0x40b3a5
mov bp, word [edx]
cmp bp, word [eax]
jne 0x40b3a5
cmp dword [esi + 0x648], 1
jne 0x40b36a
mov dword [eax + 0x5c0], ecx
mov word [eax + 0x5c4], cx
mov word [eax + 0x5c8], cx
cmp dword [esi + 0x648], 2
jne 0x40b387
mov dword [eax + 0x6b0], ecx
mov word [eax + 0x6b4], cx
mov word [eax + 0x6b8], cx
mov ebp, dword [esi + 0x648]
test ebp, ebp
jne 0x40b3a5
mov dword [eax + 0x4d0], ecx
mov word [eax + 0x4d4], cx
mov word [eax + 0x4d8], cx
add eax, 0xc
dec edi
jne 0x40b33d
add edx, 0xc
dec ebx
jne 0x40b332
mov ecx, dword [esi + 0x648]
push ecx
mov ecx, esi
call fcn.00414700
mov ebp, dword [esp + 0x1c]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
lea edi, [esi + 0xa14]
mov dword [esp + 0x20], 0x11
mov edx, dword [edi - 8]
push ebp
push edx
mov ecx, esi
call fcn.00409020
movsx eax, word [edi]
mov ecx, dword [esp + 0x14]
push 0xcc0020
lea edx, [eax + eax*4]
push 0
add ecx, 0x14
lea eax, [eax + edx*8]
mov edx, dword [esi + 0xc9c]
shl eax, 1
push eax
mov eax, dword [esi + 0xc50]
push edx
push 0x72
push 0x52
push ecx
push 0xa
push eax
mov dword [esp + 0x38], ecx
call ebx
mov ecx, esi
call fcn.00409100
mov eax, dword [esp + 0x20]
add edi, 0xc
dec eax
mov dword [esp + 0x20], eax
jne 0x40b3d7
lea edi, [esi + 0xb04]
mov dword [esp + 0x1c], 0x11
mov ecx, dword [edi - 8]
push ebp
push ecx
mov ecx, esi
call fcn.00409020
movsx eax, word [edi]
mov ecx, dword [esp + 0x10]
push 0xcc0020
lea edx, [eax + eax*4]
push 0
add ecx, 0x14
lea eax, [eax + edx*8]
mov edx, dword [esi + 0xc9c]
shl eax, 1
push eax
mov eax, dword [esi + 0xc50]
push edx
push 0x72
push 0x52
push ecx
push 0x258
push eax
mov dword [esp + 0x34], ecx
call ebx
mov ecx, esi
call fcn.00409100
mov eax, dword [esp + 0x1c]
add edi, 0xc
dec eax
mov dword [esp + 0x1c], eax
jne 0x40b43b
mov ecx, dword [esi + 0xc50]
push 0xcc0020
push 0
push 0
push ecx
push 0x1f4
push 0x2ad
push 0
push 0
push ebp
call ebx
mov edx, dword [esi + 0x668]
mov eax, dword [esi + 0xc58]
push 0xcc0020
push 0
push 0
push edx
push 0x1f4
push 0x2bc
push 0
push 0
push eax
call ebx
mov ecx, dword [esi + 0x668]
mov edx, dword [esi + 0xc60]
push 0xcc0020
push 0
push 0
push ecx
push 0x1f4
push 0x2bc
push 0
push 0
push edx
call ebx
mov eax, dword [esi + 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b76d
mov eax, dword [esi + 0x324]
mov ebx, dword [esi + 0x328]
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
sub eax, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x638]
sub ebx, 0x14
cmp eax, ebp
mov dword [esp + 0x20], ebp
jle 0x40b5a0
lea ebp, [esi + 0xa14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp - 8]
push ecx
push edx
mov ecx, esi
call fcn.00409020
movsx eax, word [ebp]
push 0xcc0020
push 0
lea ecx, [eax + eax*4]
add ebx, 0x14
lea edx, [eax + ecx*8]
mov eax, dword [esi + 0xc9c]
mov ecx, dword [esi + 0xc50]
shl edx, 1
push edx
push eax
push 0x72
push 0x52
push ebx
push 0xa
push ecx
call edi
mov ecx, esi
call fcn.00409100
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x638]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40b545
mov eax, dword [esi + 0x63c]
xor ebp, ebp
test eax, eax
jle 0x40b60f
lea ebx, [esi + 0xb04]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx - 8]
push edx
push eax
mov ecx, esi
call fcn.00409020
movsx eax, word [ebx]
mov ecx, dword [esp + 0x10]
push 0xcc0020
lea edx, [eax + eax*4]
push 0
add ecx, 0x14
lea eax, [eax + edx*8]
mov edx, dword [esi + 0xc9c]
shl eax, 1
push eax
mov eax, dword [esi + 0xc50]
push edx
push 0x72
push 0x52
push ecx
push 0x258
push eax
mov dword [esp + 0x34], ecx
call edi
mov ecx, esi
call fcn.00409100
mov eax, dword [esi + 0x63c]
inc ebp
add ebx, 0xc
cmp ebp, eax
jl 0x40b5b2
mov ecx, dword [esi + 0xc50]
mov ebp, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
push ecx
push 0x1f4
push 0x2ad
push 0
push 0
push ebp
call edi
mov edx, dword [esi + 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [esi + 0x12c], 0
mov ebx, 0x28
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], 0
jle 0x40b6c7
lea ebp, [esi + 0x12a]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp - 6]
push eax
push ecx
mov ecx, esi
call fcn.00409020
cmp eax, 1
jne 0x40b6ac
movsx eax, word [ebp]
mov ecx, dword [esi + 0xc9c]
push 0xcc0020
lea edx, [eax + eax*4]
push 0
add ebx, 0x14
lea eax, [eax + edx*8]
mov edx, dword [esi + 0xc50]
shl eax, 1
push eax
push ecx
push 0x72
push 0x52
push ebx
push 0xa
push edx
call edi
mov ecx, esi
call fcn.00409100
mov eax, dword [esp + 0x20]
add ebp, 0xc
movsx ecx, word [esi + 0x12c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40b662
mov ebp, dword [esp + 0x1c]
cmp word [esi + 0x21c], 0
mov dword [esp + 0x20], 0
jle 0x40b746
lea ebx, [esi + 0x21a]
mov edx, dword [ebx - 6]
push ebp
push edx
mov ecx, esi
call fcn.00409020
cmp eax, 1
jne 0x40b72f
movsx eax, word [ebx]
mov ecx, dword [esp + 0x10]
push 0xcc0020
lea edx, [eax + eax*4]
push 0
add ecx, 0x14
lea eax, [eax + edx*8]
mov edx, dword [esi + 0xc9c]
shl eax, 1
push eax
mov eax, dword [esi + 0xc50]
push edx
push 0x72
push 0x52
push ecx
push 0x258
push eax
mov dword [esp + 0x34], ecx
call edi
mov ecx, esi
call fcn.00409100
mov eax, dword [esp + 0x20]
add ebx, 0xc
movsx ecx, word [esi + 0x21c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40b6df
mov edx, dword [esi + 0xc50]
push 0xcc0020
push 0
push 0
push edx
push 0x1f4
push 0x2ad
push 0
push 0
push ebp
call edi
inc dword [0x4253a4]
mov eax, dword [esi + 0xc04]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
pop edi
pop ebx
test eax, eax
je 0x40b799
mov ecx, dword [esi + 0xc04]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebp
add esp, 8
ret 8
push 0
push 0
push 0x424b64
call sub.MFC42.DLL_AfxMessageBox
pop esi
pop ebp
add esp, 8
ret 8