Function at 0x436a50
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
cmp byte [ebp + 0x24], 0
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov esi, eax
jne 0x436a7f
mov eax, str.Fast
mov ecx, esi
call fcn.0046b6b0
mov byte [esp + 0x12], 0
test eax, eax
je 0x436a84
mov byte [esp + 0x12], 1
mov eax, 0x4a485c
mov ecx, esi
call fcn.0046b6b0
test eax, eax
setne al
mov byte [esp + 0x16], al
test al, al
je 0x436ac4
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
mov dword [esp + 0x20], eax
shl ecx, 8
shr eax, 0x10
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [ebp + 0x1c], edx
jmp 0x436ae6
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
shr edx, 8
movzx eax, dl
movzx edx, cl
shl edx, 8
shr ecx, 0x10
or eax, edx
movzx ecx, cl
shl eax, 8
or eax, ecx
mov dword [esp + 0x20], eax
cmp byte [ebp + 0x24], 0
mov esi, dword [0x4c0e18]
mov dword [esp + 0x30], esi
je 0x436b03
xor edi, edi
mov dword [esp + 0x38], edi
mov eax, 0x49e30c
jmp 0x436b1c
mov eax, dword [ebp + 8]
mov dl, 1
cmp dl, byte [eax + 1]
mov eax, 0x49e734
sbb edi, edi
and edi, dword [0x4c0e1c]
mov dword [esp + 0x38], edi
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046dd60
test esi, esi
je 0x436b41
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0046dd60
test edi, edi
je 0x436b54
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0046dd60
mov ecx, dword [0x4bd41c]
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
test byte [ecx + 0xe8], 1
jne 0x436bb1
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x436b9d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add dword [ebp + 0xc], eax
add dword [ebp + 0x10], ecx
add dword [ebp + 0x14], eax
add dword [ebp + 0x18], ecx
test ebx, ebx
jns 0x436bbc
xor ebx, ebx
mov dword [ebp + 0x20], ebx
jmp 0x436be9
cmp ebx, 0xff
jle 0x436bce
mov ebx, 0xff
mov dword [ebp + 0x20], ebx
jmp 0x436bd2
test ebx, ebx
jle 0x436be9
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x10], al
shr eax, 0x10
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], al
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x436b8f
cmp byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
je 0x436f32
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov edx, dword [esp + 0x1c]
sub esi, dword [ebp + 0xc]
sub edi, dword [ebp + 0x10]
xor eax, eax
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], eax
inc esi
inc edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x436e8a
mov eax, dword [esp + 0x1c]
push edi
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x28], eax
test eax, eax
je 0x436e8a
mov edx, dword [esp + 0x2c]
mov ecx, eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x436e8a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push edi
push esi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x436e8a
push 8
lea ecx, [esp + 0x1b]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push ecx
call fcn.00436840
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
je 0x436e8a
mov edi, dword [esp + 0x34]
mov al, byte [esp + 0x17]
imul edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
test al, al
je 0x436cf1
xor esi, esi
test edi, edi
jle 0x436cf5
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edi
jl 0x436ce3
jmp 0x436cf5
mov esi, dword [esp + 0x24]
cmp byte [ebp + 0x24], 0
je 0x436d44
mov ecx, dword [ecx]
and ecx, 0xffffff
cmp byte [esp + 0x16], 0
je 0x436d0e
mov eax, ecx
jmp 0x436d13
call fcn.0042e920
push eax
lea edx, [esp + 0x54]
push str.0x_06X
push edx
call fcn.00486743
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
push eax
call fcn.0046dd60
mov byte [esp + 0x13], 1
jmp 0x436e8e
cmp ebx, 1
jge 0x436d7b
test al, al
mov eax, dword [esp + 0x20]
je 0x436d56
and eax, 0xf8f8f8f8
xor esi, esi
test edi, edi
jle 0x436e72
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + esi*4]
and edx, 0xffffff
cmp edx, eax
je 0x436d3a
inc esi
cmp esi, edi
jl 0x436d64
jmp 0x436e72
test al, al
je 0x436d8d
mov al, 0xf8
and byte [esp + 0x10], al
and byte [esp + 0xf], al
and byte [esp + 0x11], al
movzx eax, byte [esp + 0x10]
mov dword [esp + 0x20], eax
cmp ebx, eax
jle 0x436da1
mov byte [esp + 0x15], 0
jmp 0x436da7
sub al, bl
mov byte [esp + 0x15], al
movzx edx, byte [esp + 0xf]
mov dword [esp + 0x24], edx
cmp ebx, edx
jle 0x436dbb
mov byte [esp + 0x12], 0
jmp 0x436dc3
mov al, dl
sub al, bl
mov byte [esp + 0x12], al
movzx ecx, byte [esp + 0x11]
cmp ebx, ecx
jle 0x436dd3
mov byte [esp + 0x11], 0
jmp 0x436ddb
mov al, cl
sub al, bl
mov byte [esp + 0x11], al
mov eax, 0xff
sub eax, dword [esp + 0x20]
cmp ebx, eax
jle 0x436def
mov byte [esp + 0x14], 0xff
jmp 0x436dfd
mov edx, dword [esp + 0x24]
mov al, bl
add al, byte [esp + 0x20]
mov byte [esp + 0x14], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x436e0f
mov byte [esp + 0xf], 0xff
jmp 0x436e16
lea eax, [edx + ebx]
mov byte [esp + 0xf], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x436e28
mov byte [esp + 0x10], 0xff
jmp 0x436e2e
add bl, cl
mov byte [esp + 0x10], bl
xor esi, esi
test edi, edi
jle 0x436e72
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
cmp cl, byte [esp + 0x15]
jb 0x436e6d
cmp cl, byte [esp + 0x14]
ja 0x436e6d
cmp dl, byte [esp + 0x12]
jb 0x436e6d
cmp dl, byte [esp + 0xf]
ja 0x436e6d
cmp al, byte [esp + 0x11]
jb 0x436e6d
cmp al, byte [esp + 0x10]
jbe 0x436d3a
inc esi
cmp esi, edi
jl 0x436e34
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046dd60
jmp 0x436e8e
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x436eba
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x436eb3
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x436ec9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x436eda
push eax
call fcn.00487975
add esp, 4
cmp byte [esp + 0x13], 0
je 0x436b8f
cmp byte [ebp + 0x24], 0
jne 0x437107
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x436f13
mov eax, esi
cdq
idiv dword [esp + 0x34]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x44]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x437107
mov eax, esi
cdq
idiv dword [esp + 0x34]
sub eax, dword [esp + 0x44]
add eax, dword [ebp + 0x10]
jmp 0x4370fb
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
setg byte [esp + 0x17]
cmp dword [ebp + 0x10], ecx
setg byte [esp + 0x16]
test ebx, ebx
jle 0x436fe6
movzx edx, byte [esp + 0x10]
cmp ebx, edx
jle 0x436f60
mov byte [esp + 0x15], 0
jmp 0x436f68
mov al, dl
sub al, bl
mov byte [esp + 0x15], al
movzx eax, byte [esp + 0xf]
cmp ebx, eax
jle 0x436f78
mov byte [esp + 0x12], 0
jmp 0x436f7e
sub al, bl
mov byte [esp + 0x12], al
movzx ecx, byte [esp + 0x11]
cmp ebx, ecx
jle 0x436f8e
mov byte [esp + 0x11], 0
jmp 0x436f96
mov al, cl
sub al, bl
mov byte [esp + 0x11], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x436fa8
mov byte [esp + 0x14], 0xff
jmp 0x436faf
lea eax, [edx + ebx]
mov byte [esp + 0x14], al
movzx edx, byte [esp + 0xf]
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x436fc6
mov byte [esp + 0xf], 0xff
jmp 0x436fcd
lea eax, [edx + ebx]
mov byte [esp + 0xf], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x436fdf
mov byte [esp + 0x10], 0xff
jmp 0x436fe6
lea eax, [ecx + ebx]
mov byte [esp + 0x10], al
mov esi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx]
xor eax, eax
cmp byte [esp + 0x17], al
je 0x437000
cmp edi, dword [ebp + 0x14]
setge al
jmp 0x437006
cmp edi, dword [ebp + 0x14]
setle al
test eax, eax
je 0x437048
mov esi, dword [ebp + 0x10]
lea ecx, [ecx]
xor eax, eax
cmp byte [esp + 0x16], al
je 0x43701f
cmp esi, ecx
setge al
jmp 0x437024
cmp esi, ecx
setle al
test eax, eax
je 0x4370c1
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x43707b
cmp eax, dword [ebp + 0x1c]
jne 0x4370ac
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x13], 0
jne 0x4370d3
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0x10
cmp al, byte [esp + 0x15]
jb 0x4370a9
cmp al, byte [esp + 0x14]
ja 0x4370a9
cmp cl, byte [esp + 0x12]
jb 0x4370a9
cmp cl, byte [esp + 0xf]
ja 0x4370a9
cmp dl, byte [esp + 0x11]
jb 0x4370a9
cmp dl, byte [esp + 0x10]
jbe 0x437043
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp byte [esp + 0x16], al
sete al
lea esi, [esi + eax*2 - 1]
jmp 0x437010
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
lea edi, [edi + edx*2 - 1]
jmp 0x436ff0
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4370ed
mov eax, edi
sub eax, dword [esp + 0x40]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x437107
mov eax, esi
sub eax, dword [esp + 0x44]
cdq
push 0x18
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20