Function at 0x454584
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454b01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0040f600
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43]
cmp byte [eax + 0x211], 0
jne 0x4545d6
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
je 0x454aeb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47]
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x454aeb
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x454616
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47]
push eax
call sub.user32.dll_ReleaseDC
jmp 0x454aeb
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00453fd0
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00453fd0
mov eax, dword [0x4bceb8]
cmp byte [eax], 0
je 0x454641
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00453bb4
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x454679
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47]
push eax
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
jmp 0x454aeb
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x454ae4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edi, eax
lea esi, [ebp - 0x54]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 5], 0
je 0x4546bb
mov eax, 0x80000002
call fcn.00417188
mov dword [ebp - 0x18], eax
jmp 0x4546c8
mov eax, 0x80000003
call fcn.00417188
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x38]
sub al, 1
jb 0x4546de
je 0x4546e4
dec al
je 0x4546ea
dec al
je 0x4546f2
jmp 0x45471a
mov byte [ebp - 0x2d], 1
jmp 0x45471e
mov byte [ebp - 0x2d], 0
jmp 0x45471e
mov al, byte [ebp - 5]
mov byte [ebp - 0x2d], al
jmp 0x45471e
push 0xc
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebp - 0x2c], eax
cmp byte [ebp - 5], 0
je 0x454710
cmp dword [ebp - 0x2c], 8
setge byte [ebp - 0x2d]
jmp 0x45471e
cmp dword [ebp - 0x2c], 8
setg byte [ebp - 0x2d]
jmp 0x45471e
mov byte [ebp - 0x2d], 0
cmp byte [ebp - 0x2d], 0
je 0x45474e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00417188
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00417188
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454bb4
jmp 0x45476a
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00417188
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454b10
mov eax, dword [0x4bceb8]
cmp byte [eax], 0
je 0x4547ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43]
test byte [eax + 0x210], 1
je 0x454794
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43]
mov al, byte [eax + 0x211]
dec eax
sub al, 2
jb 0x45479d
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
je 0x4547ab
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454014
mov eax, dword [0x4bceb8]
cmp byte [eax], 0
je 0x4547c3
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004542cc
mov eax, dword [ebp - 4]
cmp word [eax + 0x50], 0
je 0x45483d
mov dl, 1
mov eax, dword [0x41627c]
call fcn.00417f8c
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x454836
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
call fcn.00418ab8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f]
call fcn.0041765c
mov edx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
call fcn.00417804
lea eax, [ebp - 0x44]
push eax
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x52]
call dword [ebx + 0x4e]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45483d
mov eax, dword [ebp - 0x34]
call fcn.00402ecc
ret
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
add eax, 4
call fcn.00403c1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454478
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
movzx eax, byte [eax + 0x19]
imul ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454478
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
movzx edx, byte [edx + 0x19]
imul edx
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454478
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
movzx edx, byte [edx + 0x19]
imul edx
add ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x24]
setg byte [ebp - 0x25]
cmp byte [ebp - 0x25], 0
je 0x4548e2
mov byte [ebp - 0x26], 1
jmp 0x454939
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454478
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
movzx eax, byte [eax + 0x19]
imul ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454478
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
movzx edx, byte [edx + 0x19]
imul edx
add ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x24]
setg byte [ebp - 0x26]
cmp byte [ebp - 0x26], 0
jne 0x454957
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454478
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3a]
sub al, 1
jb 0x4549a4
dec al
je 0x45496b
dec al
je 0x45498b
jmp 0x4549cc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x24]
jle 0x4549cc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x24]
sar eax, 1
jns 0x454986
adc eax, 0
add dword [ebp - 0x44], eax
jmp 0x4549cc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x24]
jle 0x4549cc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x24]
add dword [ebp - 0x44], eax
jmp 0x4549cc
mov eax, dword [0x4bceb8]
cmp byte [eax], 0
jne 0x4549cc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x24]
jle 0x4549cc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x24]
sar eax, 1
jns 0x4549c9
adc eax, 0
add dword [ebp - 0x44], eax
cmp byte [ebp - 0x25], 0
je 0x454a03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 4], 0
je 0x454a03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp byte [eax + 0x19], 0
je 0x454a03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
mov al, byte [ebp - 5]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454144
cmp byte [ebp - 0x26], 0
je 0x454a3a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
cmp dword [eax + 4], 0
je 0x454a3a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
cmp byte [eax + 0x19], 0
je 0x454a3a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov al, byte [ebp - 5]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454144
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x19], 0
je 0x454a5f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
mov al, byte [ebp - 5]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00454144
push 0xcc0020
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454aeb
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47]
push eax
call sub.user32.dll_ReleaseDC
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b08
lea eax, [ebp - 0x58]
call fcn.00403bc8
ret