Function at 0x4054b0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x41fa28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esi + 0x74]
xor eax, eax
mov dword [esp + 0x44], eax
mov edx, dword [ecx + 0x634]
lea edi, [edx - 1]
test edi, edi
jle 0x4055a3
mov edi, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
cmp edi, edx
mov dword [esp + 0x10], edi
jge 0x405580
lea edx, [eax + 0xc]
mov bx, word [eax + ecx + 0x920]
cmp bx, word [edx + ecx + 0x920]
jge 0x405567
lea eax, [eax + ecx + 0x91c]
lea ecx, [edx + ecx + 0x91c]
mov ebp, eax
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
mov dword [esp + 0x24], ebp
mov ebp, dword [ecx]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 4], ebp
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x74]
lea ecx, [edx + eax + 0x91c]
mov eax, dword [esp + 0x24]
mov dword [ecx], edi
mov edi, dword [esp + 0x14]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x10]
inc ebx
add edx, 0xc
mov ebp, dword [ecx + 0x634]
mov dword [esp + 0x10], ebx
cmp ebx, ebp
jl 0x40550a
mov ecx, dword [esi + 0x74]
inc edi
add eax, 0xc
mov dword [esp + 0x14], edi
mov edx, dword [ecx + 0x634]
lea ebx, [edi - 1]
mov dword [esp + 0x18], eax
lea ebp, [edx - 1]
cmp ebx, ebp
jl 0x4054ff
mov eax, dword [esi + 0x74]
mov ecx, dword [0x425300]
push 0xcc0020
push 0x15e
mov ebp, dword [eax + 0x634]
push 0x73
sub ebp, ecx
mov dword [eax + 0x634], ebp
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x668]
mov eax, dword [eax + 0xc50]
push edx
push 0x87
push 0x1e5
push 0x15e
push 0x73
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esi + 0x74]
xor ebx, ebx
mov eax, dword [ecx + 0x634]
test eax, eax
jle 0x40566b
xor ebp, ebp
xor edi, edi
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + ecx + 0x91c]
push edx
push eax
call fcn.00409020
mov eax, dword [esi + 0x74]
push 0xcc0020
push 0
movsx ecx, word [edi + eax + 0x924]
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*8]
mov edx, dword [eax + 0xc9c]
shl ecx, 1
push ecx
mov ecx, dword [esi + 0x60]
push edx
mov edx, dword [eax + 0xc50]
push 0x72
push 0x52
add ecx, ebp
push 0x172
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esi + 0x74]
call fcn.00409100
mov ecx, dword [esi + 0x74]
inc ebx
add edi, 0xc
add ebp, 0x14
cmp ebx, dword [ecx + 0x634]
jl 0x405601
mov eax, dword [esi + 0x74]
mov edx, dword [esp + 0x2c]
push 0xcc0020
push 0
mov ecx, dword [eax + 0xc50]
push 0
push ecx
push 0x1f4
push 0x2ad
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x74]
cmp dword [eax + 0x30], 1
jne 0x4056b9
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x40007
push eax
push 0x89
call dword [sym.imp.WINMM.dll_PlaySoundA]
mov esi, dword [esi + 0x74]
mov dword [esp + 0x44], 0xffffffff
mov cx, word [esi + 0x634]
mov word [esi + 0x922], cx
lea ecx, [esp + 0x28]
mov dword [0x425300], 0
call fcn.0041ec90
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret