Function at 0x417312
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp dword [0x55d458], 0
jne 0x41781a
mov dword [0x55d458], 1
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
call fcn.00416d9a
cmp dword [0x55d2cc], 0
je 0x4177be
cmp dword [0x55d2f8], 0
je 0x4177be
push dword [0x55d2f8]
call sub.USER32.dll_GetDC
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4177be
cmp dword [0x55d428], 0
je 0x4173a7
xor eax, eax
mov dword [0x55d428], eax
push 0x7e
push dword [0x55d2f8]
call sub.USER32.dll_KillTimer
lea edx, [ebp - 0x2c]
push edx
push dword [0x55d2f8]
call sub.USER32.dll_GetClientRect
push 0
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4177be
test esi, esi
je 0x417403
mov eax, dword [esi + 0x9e8]
mov edx, dword [esi + 0x9e0]
cmp eax, edx
je 0x4177be
mov ecx, dword [esi + 0x9e4]
sub ecx, dword [esi + 0x9dc]
inc ecx
mov dword [ebp - 0x24], ecx
cmp dword [0x55d2ec], 2
jl 0x417403
sub eax, edx
add eax, 2
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4177be
push dword [ebp - 4]
push dword [ebp - 0x18]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 8], eax
push dword [0x55f8d8]
call sub.GDI32.dll_CreateSolidBrush
mov ebx, eax
test ebx, ebx
je 0x4177be
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
call sub.USER32.dll_FillRect
push ebx
call sub.GDI32.dll_DeleteObject
push 0x55d511
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x48
push 0x5a
push dword [ebp - 0x14]
call sub.GDI32.dll_GetDeviceCaps
push eax
push 8
call sub.KERNEL32.dll_MulDiv
neg eax
push eax
call sub.GDI32.dll_CreateFontA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4177be
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x10], eax
call fcn.004159cb
test eax, eax
jne 0x4177be
test esi, esi
je 0x417538
cmp dword [esi + 0x9d0], 0
je 0x4177be
push esi
call fcn.00416b1f
test eax, eax
je 0x4177be
push esi
add esi, 0x9dc
lea edi, [ebp - 0x3c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
mov edx, dword [esi + 0x9dc]
sub dword [esi + 0x9e4], edx
xor ecx, ecx
mov dword [esi + 0x9dc], ecx
cmp dword [0x55d2ec], 2
jl 0x41751a
mov edx, dword [esi + 0x9e0]
sub dword [esi + 0x9e8], edx
xor ecx, ecx
mov dword [esi + 0x9e0], ecx
push eax
push dword [ebp - 0x18]
push esi
call fcn.00416353
push esi
lea edi, [esi + 0x9dc]
lea esi, [ebp - 0x3c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x417569
mov ebx, dword [0x56cee0]
test ebx, ebx
je 0x417569
cmp dword [ebx + 0x9d0], 0
je 0x41755f
push ebx
call fcn.00416b1f
test eax, eax
je 0x41755f
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00416353
mov ebx, dword [ebx + 0xd18]
test ebx, ebx
jne 0x417542
cmp dword [0x56cee0], 0
je 0x41774d
cmp dword [0x55d310], 0
je 0x41774d
test esi, esi
jne 0x41774d
lea eax, [ebp - 0x2c]
push eax
push dword [0x55d2f8]
call sub.USER32.dll_GetClientRect
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call sub.GDI32.dll_CreateRectRgn
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41774d
mov ebx, dword [0x56cee0]
test ebx, ebx
je 0x4176a7
cmp dword [ebx + 0x9d0], 0
je 0x417699
mov eax, dword [ebx + 0x9e0]
cmp eax, dword [ebx + 0x9e8]
je 0x417699
push ebx
call fcn.00416b1f
test eax, eax
je 0x417699
mov edx, dword [ebx + 0x9e0]
mov dword [ebp - 0x60], edx
mov ecx, dword [ebx + 0x9e8]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebx + 0x9dc]
mov dword [ebp - 0x64], eax
mov edx, dword [ebx + 0x9e4]
mov dword [ebp - 0x5c], edx
test esi, esi
je 0x417646
mov eax, dword [0x55d2ec]
cmp eax, 3
jne 0x41762f
sub dword [ebp - 0x64], 4
sub dword [ebp - 0x60], 2
jmp 0x41766e
cmp eax, 2
jne 0x41763d
dec dword [ebp - 0x64]
sub dword [ebp - 0x60], 2
jmp 0x41766e
dec dword [ebp - 0x64]
add dword [ebp - 0x58], 2
jmp 0x41766e
mov eax, dword [0x55d2ec]
cmp eax, 3
jne 0x417659
add dword [ebp - 0x58], 2
inc dword [ebp - 0x5c]
jmp 0x41766e
cmp eax, 2
jne 0x417667
add dword [ebp - 0x58], 2
inc dword [ebp - 0x5c]
jmp 0x41766e
add dword [ebp - 0x58], 2
inc dword [ebp - 0x5c]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call sub.GDI32.dll_CreateRectRgn
mov edi, eax
test edi, edi
je 0x4176a7
push 4
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x1c]
call sub.GDI32.dll_CombineRgn
push edi
call sub.GDI32.dll_DeleteObject
mov ebx, dword [ebx + 0xd18]
test ebx, ebx
jne 0x4175c6
test ebx, ebx
jne 0x417745
push 0
call sub.GDI32.dll_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
je 0x417745
push dword [0x55d310]
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call sub.GDI32.dll_SelectClipRgn
lea eax, [ebp - 0x54]
push eax
push 0x18
push dword [0x55d310]
call sub.GDI32.dll_GetObjectA
xor edx, edx
mov dword [ebp - 0x60], edx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
push 0xcc0020
push 0
push 0
push ebx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x18]
call sub.GDI32.dll_BitBlt
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x24]
jl 0x4176f4
mov ecx, dword [ebp - 0x4c]
add dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x20]
jl 0x4176ef
push 0
push dword [ebp - 0x18]
call sub.GDI32.dll_SelectClipRgn
push edi
push ebx
call sub.GDI32.dll_SelectObject
push ebx
call sub.GDI32.dll_DeleteDC
push dword [ebp - 0x1c]
call sub.GDI32.dll_DeleteObject
lea edx, [ebp - 0x2c]
push edx
push dword [0x55d2f8]
call sub.USER32.dll_GetClientRect
xor ecx, ecx
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x41779d
mov eax, dword [esi + 0x9dc]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x9e4]
sub edx, eax
inc edx
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x9e0]
mov dword [ebp - 0x28], eax
cmp dword [0x55d2ec], 1
jg 0x41778f
mov dword [ebp - 0x38], eax
mov edx, dword [esi + 0x9e8]
sub edx, eax
add edx, 2
mov dword [ebp - 0x20], edx
push 0xcc0020
push dword [ebp - 0x38]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call sub.GDI32.dll_BitBlt
cmp dword [ebp - 0xc], 0
je 0x4177d7
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call sub.GDI32.dll_SelectObject
push dword [ebp - 0xc]
call sub.GDI32.dll_DeleteObject
cmp dword [ebp - 0x18], 0
je 0x4177fe
cmp dword [ebp - 4], 0
je 0x4177f6
push dword [ebp - 8]
push dword [ebp - 0x18]
call sub.GDI32.dll_SelectObject
push dword [ebp - 4]
call sub.GDI32.dll_DeleteObject
push dword [ebp - 0x18]
call sub.GDI32.dll_DeleteDC
cmp dword [ebp - 0x14], 0
je 0x417812
push dword [ebp - 0x14]
push dword [0x55d2f8]
call sub.USER32.dll_ReleaseDC
xor ecx, ecx
mov dword [0x55d458], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4