Function at 0x51f3b4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x34]
push ecx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
mov edx, dword [0x4f9df8]
call fcn.00407b58
xor eax, eax
push ebp
push 0x51fa2b
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x51f403
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
je 0x51f9e2
cmp dword [ebp - 0xc], 0
je case.0x51f8cf.1
lea eax, [ebp - 0x28]
xor edx, edx
call fcn.0057b0c0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
xor edx, edx
call fcn.0057b0d4
mov esi, eax
xor eax, eax
mov dword [ebp - 0x50], eax
movzx eax, byte [ebp + 8]
dec al
je 0x51f450
sub al, 3
je 0x51f4dc
dec al
je 0x51f56d
sub al, 5
je 0x51f602
jmp 0x51f6e5
push 4
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_SetStretchBltMode
push 0xcc0020
push esi
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
mov eax, dword [ebp - 0x40]
xor edx, edx
call fcn.0057b0d4
push eax
mov eax, dword [ebp - 0x40]
xor edx, edx
call fcn.0057b0c0
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_StretchBlt
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
push 4
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_SetStretchBltMode
push 0xcc0020
push esi
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
push esi
mov eax, dword [ebp - 0x40]
xor edx, edx
call fcn.0057b0c0
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_StretchBlt
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 4]
add edx, esi
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
push 4
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_SetStretchBltMode
push 0xcc0020
push esi
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
mov eax, dword [ebp - 0x40]
xor edx, edx
call fcn.0057b0d4
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_StretchBlt
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
add eax, dword [ebp - 0x44]
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
mov edi, dword [ebp - 0x40]
mov edi, dword [edi]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, esi
mov dword [ebp - 0x4c], eax
cmp edi, dword [ebp - 0x48]
jge 0x51f673
mov ebx, dword [ebp - 0x40]
mov ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x4c]
jge 0x51f66b
push 0xcc0020
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
push esi
mov eax, dword [ebp - 0x44]
push eax
push ebx
push edi
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_BitBlt
add ebx, esi
cmp ebx, dword [ebp - 0x4c]
jl 0x51f62e
add edi, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x48]
jl 0x51f623
mov ebx, dword [ebp - 0x40]
mov ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x4c]
jge 0x51f6c0
push 0xcc0020
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
push esi
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
sub eax, edi
push eax
push ebx
push edi
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_BitBlt
add ebx, esi
cmp ebx, dword [ebp - 0x4c]
jl 0x51f67e
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov edi, eax
movzx edx, byte [ebp + 8]
sub dl, 1
jb 0x51f704
dec dl
je 0x51f71d
dec dl
je 0x51f734
sub dl, 3
je 0x51f747
jmp 0x51f772
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, esi
mov dword [ebp - 0x4c], eax
jmp 0x51f797
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
jmp 0x51f797
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, esi
mov dword [ebp - 0x4c], eax
jmp 0x51f797
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, esi
mov edx, dword [ebp - 0x40]
mov dword [edx + 4], eax
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 8]
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
jmp 0x51f797
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [edx], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, esi
mov dword [ebp - 0x4c], eax
cmp edi, dword [ebp - 0x48]
jge 0x51f832
mov ebx, dword [ebp - 0x40]
mov ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x4c]
jge 0x51f7e8
push 0xcc0020
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
push esi
mov eax, dword [ebp - 0x44]
push eax
push ebx
push edi
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_BitBlt
add ebx, esi
cmp ebx, dword [ebp - 0x4c]
jl 0x51f7ab
push 0xcc0020
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp - 0x44]
push eax
push ebx
push edi
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_BitBlt
add edi, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x48]
jl 0x51f7a0
mov ebx, dword [ebp - 0x40]
mov ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x4c]
jge 0x51f87f
push 0xcc0020
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
push esi
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
sub eax, edi
push eax
push ebx
push edi
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_BitBlt
add ebx, esi
cmp ebx, dword [ebp - 0x4c]
jl 0x51f83d
push 0xcc0020
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x138]
call fcn.0045bfa4
call fcn.0045670c
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
sub eax, edi
push eax
push ebx
push edi
mov eax, dword [ebp - 0x38]
call fcn.0045670c
push eax
call sub.gdi32.dll_BitBlt
movzx eax, byte [ebp + 8]
cmp eax, 7
ja case.0x51f8cf.1
jmp dword [eax*4 + 0x51f8d6]
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 4]
add edx, esi
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
add eax, dword [ebp - 0x44]
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
sub eax, esi
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov edx, dword [ebp - 0x50]
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 8]
sub ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 0x50]
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.0x51f8cf.1
mov edx, dword [ebp - 0x40]
mov ecx, ebx
mov eax, dword [ebp - 0x38]
call fcn.0051f168
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00432508
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x60]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fa32
lea eax, [ebp - 0x34]
mov edx, dword [0x4f9df8]
call fcn.004079ec
ret