Function at 0x412950
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4880e0]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, 1
cmp eax, ebp
mov eax, dword [0x4880e8]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
je 0x412a07
cmp eax, ebp
jle 0x412a91
mov esi, 0x4b5638
xor edi, edi
lea eax, [esi - 0x18]
push eax
call fcn.0040a920
xor ecx, ecx
add esp, 4
cmp eax, 0x211
sete cl
xor edx, edx
cmp eax, 0x20e
sete dl
or ecx, edx
je 0x4129e9
lea eax, [edi + 0x4c1160]
mov ecx, esi
mov ebx, dword [ecx]
mov edx, eax
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
lea edx, [edi + 0x4c2160]
push edx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4129e5
mov dword [esp + 0x14], eax
inc ebp
add edi, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4880e8]
inc eax
add esi, 0x134
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41298b
jmp 0x412a8d
cmp eax, ebp
jle 0x412a91
mov esi, 0x4b696c
xor edi, edi
lea eax, [esi - 4]
push eax
call fcn.0040b190
xor ecx, ecx
add esp, 4
cmp eax, 0x211
sete cl
xor edx, edx
cmp eax, 0x20e
sete dl
or ecx, edx
je 0x412a74
lea eax, [edi + 0x4c1160]
mov ecx, esi
mov ebx, dword [ecx]
mov edx, eax
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
lea edx, [edi + 0x4c2160]
push edx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x412a70
mov dword [esp + 0x14], eax
inc ebp
add edi, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4880e8]
inc eax
add esi, 0x124
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x412a16
mov edi, dword [esp + 0x14]
cmp ebp, dword [0x482d80]
jne 0x412a9d
test edi, edi
jne 0x412adc
mov eax, ebp
shl eax, 4
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, 0x4c1160
mov edi, 0x4c2160
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, 0x4c1160
mov edi, 0x7e17c8
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x482d80], ebp
xor edi, edi
test ebp, ebp
mov esi, dword [esp + 0x30]
jne 0x412b08
mov eax, dword [0x13b5178]
test eax, eax
je 0x412b08
mov ecx, dword [0x13b5174]
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 [0x13b52c8]
test eax, eax
mov dword [esp + 0x30], 0
je 0x412b25
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x30], eax
test ebp, ebp
jne 0x412d70
cmp dword [0x13b52e0], 1
je 0x412d70
mov eax, dword [0x487f4c]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
je 0x412cc9
cmp eax, ebp
jne 0x412c2e
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [0x13b43ec]
mov edi, eax
mov eax, dword [0x487f38]
push edi
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.USER32.dll_FillRect]
push esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call ebp
mov eax, dword [0x13b43ec]
mov edx, dword [0x487f50]
push edi
lea ecx, [esp + 0x20]
add edx, eax
mov dword [esp + 0x20], eax
mov eax, dword [0x13b43f0]
push ecx
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call ebp
mov edx, dword [0x13b43ec]
mov eax, dword [0x487f50]
mov ecx, dword [0x487f34]
add eax, edx
mov edx, dword [0x487f38]
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 ebp
mov ecx, dword [0x13b43f0]
mov edx, dword [0x487f54]
mov eax, dword [0x13b43ec]
add edx, ecx
mov ecx, dword [0x487f50]
add ecx, eax
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edx
mov edx, dword [0x487f38]
push eax
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call ebp
jmp 0x412cc9
push 0xcc0020
push ebp
lea ecx, [eax + eax*4]
push ebp
lea edx, [eax + ecx*2]
mov edi, dword [edx*4 + 0x7ddf94]
mov eax, dword [0x487f38]
mov ecx, dword [0x13b43ec]
push edi
push eax
push ecx
push ebp
push ebp
push esi
call ebx
mov eax, dword [0x13b43ec]
mov edx, dword [0x13b43f0]
mov ecx, dword [0x487f50]
push 0xcc0020
push ebp
push eax
push edi
push edx
add ecx, eax
push ecx
push ebp
push eax
push esi
call ebx
mov edx, dword [0x13b43ec]
mov eax, dword [0x487f50]
mov ecx, dword [0x487f34]
push 0xcc0020
push ebp
add eax, edx
push eax
push edi
push ecx
push eax
push ebp
push eax
push esi
call ebx
mov edx, dword [0x13b43f0]
mov eax, dword [0x487f54]
mov ecx, dword [0x13b43ec]
push 0xcc0020
add eax, edx
mov edx, dword [0x487f34]
push eax
push ecx
push edi
push edx
mov edx, dword [0x487f50]
add edx, ecx
push edx
push eax
push ecx
push esi
call ebx
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x1c]
mov eax, dword [0x487f50]
cmp edx, eax
mov ecx, dword [0x487f54]
jne 0x412d0e
cmp dword [edi + 0x20], ecx
jne 0x412d0e
mov edx, dword [edi + 4]
mov ebp, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
push edx
push ecx
mov ecx, dword [0x13b43ec]
push eax
mov eax, dword [0x13b43f0]
sub eax, ebp
push eax
push ecx
push esi
call ebx
jmp 0x412ddc
cmp edx, eax
jb 0x412d1c
cmp dword [edi + 0x20], ecx
mov eax, dword [0x482940]
jae 0x412d21
mov eax, dword [0x482944]
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 [0x487f54]
mov ebp, eax
mov eax, dword [edi + 0x1c]
push eax
mov eax, dword [0x487f50]
push 0
push 0
push ecx
mov ecx, dword [0x13b43f0]
push edx
mov edx, dword [esp + 0x4c]
push eax
sub ecx, edx
mov edx, dword [0x13b43ec]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push ebp
push esi
call ebx
jmp 0x412ddc
test edi, edi
jne 0x412d98
push ebp
call fcn.00413c10
add esp, 4
test eax, eax
jne 0x412d98
push 0x307
push str.E:ProjectsVCSrc_rioSub.cpp
push str.FALSE
call fcn.004446ed
add esp, 0xc
mov eax, dword [0x7e17c8]
cmp eax, 0xffffffff
je 0x412ddc
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov edi, 0x7e17d0
mov ecx, dword [edi]
mov edx, dword [ebp + 4]
push 0xcc0020
push ecx
push eax
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [edi - 4]
sub ecx, edx
push ecx
push eax
push esi
call ebx
mov eax, dword [edi + 8]
add edi, 0x10
cmp eax, 0xffffffff
jne 0x412db1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412dee
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