Function at 0x413960
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4c23b0]
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp eax, edi
mov eax, dword [0xd0ad50]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], edi
je 0x413a16
cmp eax, edi
jle 0x413a96
mov esi, 0x4f1948
lea eax, [esi - 0x18]
push eax
call fcn.0040b0f0
xor ecx, ecx
add esp, 4
cmp eax, 0x211
sete cl
xor edx, edx
cmp eax, 0x20e
sete dl
or ecx, edx
je 0x4139f8
lea eax, [edi + 0x4fdc10]
mov ecx, esi
mov ebp, dword [ecx]
mov edx, eax
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ecx
lea edx, [edi + 0x4fec10]
push edx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4139f4
mov dword [esp + 0x10], eax
inc ebx
add edi, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [0xd0ad50]
inc eax
add esi, 0x134
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x41399a
jmp 0x413a96
cmp eax, edi
jle 0x413a96
mov esi, 0x4f2c7c
lea eax, [esi - 4]
push eax
call fcn.0040b8f0
xor ecx, ecx
add esp, 4
cmp eax, 0x211
sete cl
xor edx, edx
cmp eax, 0x20e
sete dl
or ecx, edx
je 0x413a7d
lea eax, [edi + 0x4fdc10]
mov ecx, esi
mov ebp, dword [ecx]
mov edx, eax
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ecx
lea edx, [edi + 0x4fec10]
push edx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x413a79
mov dword [esp + 0x10], eax
inc ebx
add edi, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [0xd0ad50]
inc eax
add esi, 0x124
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x413a1f
cmp ebx, dword [0x4ba880]
jne 0x413aa6
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413aeb
mov eax, ebx
shl eax, 4
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, 0x4fdc10
mov edi, 0x4fec10
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
shr ecx, 2
mov esi, 0x4fdc10
mov edi, 0x8d2700
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [0x4ba880], ebx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], 0
test ebx, ebx
mov esi, dword [esp + 0x30]
jne 0x413b17
mov eax, dword [0xd0abe0]
test eax, eax
je 0x413b17
mov ecx, dword [0xd0abdc]
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [0xd0ad48]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x30], ebp
je 0x413b36
push 0xf
call edi
mov dword [esp + 0x30], eax
mov ebp, eax
test ebx, ebx
jne 0x413de9
cmp dword [0xd0ad64], 1
je 0x413de9
mov eax, dword [0xd09e38]
cmp eax, 0xffffffff
je 0x413d3e
mov ecx, dword [0xd09e18]
test ecx, ecx
je 0x413b97
mov ebp, dword [0xd09e30]
test ebp, ebp
mov ecx, dword [0xd09e28]
jne 0x413b7f
lea edx, [ecx + ecx*2]
shl edx, 4
mov ebp, dword [edx + 0x8c9ae4]
mov ebx, dword [0xd09e34]
test ebx, ebx
jne 0x413bc0
lea ecx, [ecx + ecx*2]
shl ecx, 4
mov ebx, dword [ecx + 0x8c9ae8]
jmp 0x413bc0
mov ecx, dword [0xd09e1c]
test ecx, ecx
je 0x413bb4
push 0
call edi
push 1
mov ebp, eax
call edi
mov ebx, eax
mov eax, dword [0xd09e38]
jmp 0x413bc0
mov ebp, dword [0x4c21f4]
mov ebx, dword [0x4c21f8]
test eax, eax
jne 0x413c9f
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [0xd09e3c]
mov edi, eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [0xd09e3c]
mov ecx, dword [0x4c220c]
mov edx, dword [0xd09e40]
add ecx, eax
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [0xd09e3c]
mov edx, dword [0x4c220c]
push edi
lea eax, [esp + 0x20]
push eax
add edx, ecx
mov dword [esp + 0x2c], ebp
mov ebp, dword [sym.imp.USER32.dll_FillRect]
push esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], ebx
call ebp
mov ecx, dword [0xd09e40]
mov edx, dword [0x4c2210]
mov eax, dword [0xd09e3c]
add edx, ecx
mov ecx, dword [0x4c220c]
mov dword [esp + 0x20], edx
push edi
lea edx, [esp + 0x20]
push edx
add ecx, eax
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
call ebp
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov ebp, dword [esp + 0x30]
jmp 0x413d44
mov ecx, dword [0xd09e3c]
push 0xcc0020
push 0
push 0
lea eax, [eax + eax*2]
shl eax, 4
mov edi, dword [eax + 0x8c9acc]
push edi
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push ecx
push 0
push 0
push esi
call ebx
mov eax, dword [0xd09e3c]
mov edx, dword [0xd09e40]
mov ecx, dword [0x4c220c]
push 0xcc0020
push 0
push eax
push edi
push edx
add ecx, eax
push ecx
push 0
push eax
push esi
call ebx
mov edx, dword [0xd09e3c]
mov eax, dword [0x4c220c]
push 0xcc0020
push 0
add eax, edx
push eax
push edi
push ebp
push eax
push 0
push eax
push esi
call ebx
mov ecx, dword [0xd09e40]
mov edx, dword [0x4c2210]
push 0xcc0020
lea eax, [edx + ecx]
mov ecx, dword [0xd09e3c]
mov edx, dword [0x4c220c]
push eax
push ecx
push edi
push ebp
add edx, ecx
push edx
push eax
push ecx
push esi
call ebx
mov ebp, dword [esp + 0x30]
jmp 0x413d44
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x1c]
mov eax, dword [0x4c220c]
cmp edx, eax
mov ecx, dword [0x4c2210]
jne 0x413d85
cmp dword [edi + 0x20], ecx
jne 0x413d85
mov edx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push edx
push ecx
mov ecx, dword [0xd09e3c]
push eax
mov eax, dword [0xd09e40]
sub eax, ebp
push eax
push ecx
push esi
call ebx
jmp 0x413e55
cmp edx, eax
jb 0x413d93
cmp dword [edi + 0x20], ecx
mov eax, dword [0x4ba630]
jae 0x413d98
mov eax, dword [0x4ba634]
mov ebx, dword [sym.imp.GDI32.dll_SetStretchBltMode]
push eax
push esi
call ebx
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 4]
push 0xcc0020
push edx
mov edx, dword [0x4c2210]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x1c]
push eax
mov eax, dword [0x4c220c]
push 0
push 0
push ecx
mov ecx, dword [0xd09e40]
push edx
mov edx, dword [0xd09e3c]
push eax
sub ecx, ebp
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x34]
push eax
push esi
call ebx
jmp 0x413e55
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413e15
push ebx
call fcn.00414eb0
add esp, 4
test eax, eax
jne 0x413e15
push 0x3a0
push str.E:ProjectsVCSrc_rio2Sub.cpp
push str.FALSE
call fcn.0044ea2d
add esp, 0xc
mov eax, dword [0x8d2700]
cmp eax, 0xffffffff
je 0x413e55
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov edi, 0x8d2708
mov ecx, dword [edi]
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 4]
push 0xcc0020
push ecx
push eax
push edx
mov edx, dword [edi + 4]
push edx
push ecx
mov ecx, dword [edi - 4]
sub ecx, ebp
push ecx
push eax
push esi
call ebx
mov eax, dword [edi + 8]
add edi, 0x10
cmp eax, 0xffffffff
jne 0x413e2a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413e67
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret