Function at 0x43a490
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov esi, ecx
jne 0x43a4bf
mov eax, str.Fast
call fcn.00476710
mov byte [esp + 0x11], 0
test eax, eax
je 0x43a4c4
mov byte [esp + 0x11], 1
mov eax, 0x4ad338
mov ecx, esi
call fcn.00476710
test eax, eax
setne al
mov byte [esp + 0x15], al
test al, al
je 0x43a504
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
mov dword [esp + 0x18], 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 0x43a526
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 + 0x18], eax
cmp byte [ebp + 0x24], 0
mov ecx, dword [0x4ca4b0]
mov dword [esp + 0x48], ecx
je 0x43a53a
xor esi, esi
jmp 0x43a54a
mov eax, dword [ebp + 8]
mov dl, 1
cmp dl, byte [eax + 1]
sbb esi, esi
and esi, dword [0x4ca4b4]
mov dword [esp + 0x4c], esi
cmp ecx, edi
je 0x43a557
call fcn.00414dc0
cmp esi, edi
je 0x43a562
mov ecx, esi
call fcn.00414dc0
mov ecx, dword [0x4c6a44]
movzx esi, word [ecx + 0xf0]
and esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
cmp esi, 2
je 0x43a5d2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x43a5d2
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x43a5d2
test esi, esi
jne 0x43a5a8
lea edx, [esp + 0x50]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x43a5be
lea edx, [esp + 0x50]
xor eax, eax
push edx
push edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x43a5d2
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
add dword [esp + 0x24], eax
add dword [esp + 0x28], ecx
mov esi, dword [esp + 0x24]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
add eax, esi
add edi, esi
mov esi, dword [ebp + 0x18]
add ecx, edx
add esi, edx
cmp eax, edi
setg byte [esp + 0x17]
cmp ecx, esi
setg byte [esp + 0x14]
cmp byte [esp + 0x17], 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
je 0x43a61d
mov dword [esp + 0x38], edi
mov edi, eax
cmp byte [esp + 0x14], 0
je 0x43a62a
mov dword [esp + 0x44], esi
mov esi, ecx
test ebx, ebx
jns 0x43a635
xor ebx, ebx
mov dword [ebp + 0x20], ebx
jmp 0x43a662
cmp ebx, 0xff
jle 0x43a647
mov ebx, 0xff
mov dword [ebp + 0x20], ebx
jmp 0x43a64b
test ebx, ebx
jle 0x43a662
mov eax, dword [ebp + 0x1c]
mov edx, eax
shr edx, 8
mov byte [esp + 0x10], al
shr eax, 0x10
mov byte [esp + 0xf], dl
mov byte [esp + 0x12], al
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x43aa79
cmp byte [esp + 0x11], 0
mov byte [esp + 0x13], 0
je 0x43aab1
sub edi, dword [esp + 0x38]
sub esi, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
push eax
inc edi
inc esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x43a9a0
mov ecx, dword [esp + 0x2c]
push esi
push edi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x40], eax
test eax, eax
je 0x43a9a0
mov edx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x43a9a0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
push 0xcc0020
push eax
push ecx
push edx
push esi
push edi
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x43a9a0
push 8
lea eax, [esp + 0x15]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
mov eax, ebx
call fcn.0043a280
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
je 0x43a9a0
mov ebx, dword [esp + 0x34]
mov cl, byte [esp + 0x11]
mov edx, ebx
imul edx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
test cl, cl
je 0x43a76e
xor esi, esi
test edx, edx
jle 0x43a772
jmp 0x43a760
and dword [eax + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edx
jl 0x43a760
jmp 0x43a772
mov esi, dword [esp + 0x3c]
cmp byte [ebp + 0x24], 0
je 0x43a7bf
mov eax, dword [eax]
and eax, 0xffffff
cmp byte [esp + 0x15], 0
jne 0x43a78d
mov ecx, eax
call fcn.00431ce0
push eax
lea ecx, [esp + 0x64]
push str.0x_06X
push ecx
call fcn.004901a6
mov eax, dword [esp + 0x54]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.004793e0
mov byte [esp + 0x13], 1
jmp 0x43a9a8
mov eax, dword [ebp + 0x20]
cmp eax, 1
jge 0x43a83b
test cl, cl
je 0x43a7d3
and dword [esp + 0x18], 0xf8f8f8f8
xor ecx, ecx
test edx, edx
jle 0x43a9a8
mov edi, edx
dec edi
cmp byte [esp + 0x17], 0
mov al, byte [esp + 0x14]
je 0x43a803
test al, al
je 0x43a7f3
mov esi, edi
jmp 0x43a81c
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
dec esi
jmp 0x43a81c
test al, al
je 0x43a81a
mov eax, edi
cdq
idiv ebx
mov esi, eax
mov eax, ecx
imul esi, ebx
cdq
idiv ebx
add esi, edx
jmp 0x43a81c
mov esi, ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
and eax, 0xffffff
cmp eax, dword [esp + 0x18]
je 0x43a7b5
inc ecx
dec edi
cmp ecx, dword [esp + 0x30]
jl 0x43a7e0
jmp 0x43a9a8
test cl, cl
je 0x43a84d
mov cl, 0xf8
and byte [esp + 0x10], cl
and byte [esp + 0xf], cl
and byte [esp + 0x12], cl
movzx edx, byte [esp + 0x10]
mov dword [esp + 0x18], edx
cmp eax, edx
jle 0x43a861
mov byte [esp + 0x16], 0
jmp 0x43a869
mov cl, dl
sub cl, al
mov byte [esp + 0x16], cl
movzx ecx, byte [esp + 0xf]
mov dword [esp + 0x20], ecx
cmp eax, ecx
jle 0x43a87d
mov byte [esp + 0x11], 0
jmp 0x43a883
sub cl, al
mov byte [esp + 0x11], cl
movzx ecx, byte [esp + 0x12]
cmp eax, ecx
jle 0x43a893
mov byte [esp + 0xf], 0
jmp 0x43a89f
mov dl, cl
sub dl, al
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x18]
mov edi, 0xff
sub edi, edx
cmp eax, edi
jle 0x43a8b1
mov byte [esp + 0x15], 0xff
jmp 0x43a8bb
mov dl, byte [esp + 0x18]
add dl, al
mov byte [esp + 0x15], dl
mov edx, 0xff
sub edx, dword [esp + 0x20]
cmp eax, edx
jle 0x43a8cf
mov byte [esp + 0x12], 0xff
jmp 0x43a8d9
mov dl, byte [esp + 0x20]
add dl, al
mov byte [esp + 0x12], dl
mov edx, 0xff
sub edx, ecx
cmp eax, edx
jle 0x43a8eb
mov byte [esp + 0x10], 0xff
jmp 0x43a8f1
add cl, al
mov byte [esp + 0x10], cl
xor edi, edi
cmp dword [esp + 0x30], edi
jle 0x43a9a8
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x20], eax
jmp 0x43a910
cmp byte [esp + 0x17], 0
mov cl, byte [esp + 0x14]
je 0x43a933
test cl, cl
je 0x43a923
mov esi, eax
jmp 0x43a94a
mov eax, edi
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
dec esi
jmp 0x43a94a
test cl, cl
je 0x43a948
cdq
idiv ebx
mov esi, eax
mov eax, edi
imul esi, ebx
cdq
idiv ebx
add esi, edx
jmp 0x43a94a
mov esi, edi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
cmp cl, byte [esp + 0x16]
jb 0x43a97f
cmp cl, byte [esp + 0x15]
ja 0x43a97f
cmp dl, byte [esp + 0x11]
jb 0x43a97f
cmp dl, byte [esp + 0x12]
ja 0x43a97f
cmp al, byte [esp + 0xf]
jb 0x43a97f
cmp al, byte [esp + 0x10]
jbe 0x43a999
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
inc edi
dec eax
mov dword [esp + 0x20], eax
cmp edi, dword [esp + 0x30]
jl 0x43a910
jmp 0x43a9a8
mov byte [esp + 0x13], 1
jmp 0x43a9a4
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x50]
test edi, edi
je 0x43a9d4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43a9cd
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x43a9e3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x1c], 0
je 0x43aa79
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00490561
add esp, 4
cmp byte [ebp + 0x24], 0
jne 0x43aa4c
cmp byte [esp + 0x13], 0
je 0x43aa58
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x43aa2b
mov eax, esi
cdq
idiv ebx
push 0x18
mov eax, edx
sub eax, dword [esp + 0x28]
add eax, dword [esp + 0x3c]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x43aa4c
mov eax, esi
cdq
idiv ebx
push 0x18
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x48]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
cmp byte [esp + 0x13], 0
mov eax, 0x4a3920
jne 0x43aa5d
mov eax, 0x4a6324
mov edx, dword [0x4cad6c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.004793e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov eax, 0x4a6324
jne 0x43aa89
mov eax, 0x4a687c
mov ecx, dword [0x4c6a44]
test byte [ecx + 0x100], 1
je 0x43aa5d
mov ecx, dword [ebp + 8]
push 0x4a3890
push 0
push eax
call fcn.0042ff70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
test ebx, ebx
jle 0x43ab5a
movzx edx, byte [esp + 0x10]
mov dword [esp + 0x18], edx
cmp ebx, edx
jle 0x43aacd
mov byte [esp + 0x16], 0
jmp 0x43aad5
mov al, dl
sub al, bl
mov byte [esp + 0x16], al
movzx ecx, byte [esp + 0xf]
cmp ebx, ecx
jle 0x43aae5
mov byte [esp + 0x11], 0
jmp 0x43aaf1
mov ebx, dword [ebp + 0x20]
mov al, cl
sub al, byte [ebp + 0x20]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x12]
cmp ebx, eax
jle 0x43ab01
mov byte [esp + 0xf], 0
jmp 0x43ab0e
mov dl, al
sub dl, byte [ebp + 0x20]
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x18]
mov ebx, dword [ebp + 0x20]
mov esi, 0xff
sub esi, edx
cmp ebx, esi
jle 0x43ab23
mov byte [esp + 0x15], 0xff
jmp 0x43ab2a
add dl, byte [ebp + 0x20]
mov byte [esp + 0x15], dl
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x43ab3c
mov byte [esp + 0x12], 0xff
jmp 0x43ab42
add cl, bl
mov byte [esp + 0x12], cl
mov ecx, 0xff
sub ecx, eax
cmp ebx, ecx
jle 0x43ab54
mov byte [esp + 0x10], 0xff
jmp 0x43ab5a
add al, bl
mov byte [esp + 0x10], al
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x50]
mov al, byte [esp + 0x17]
test al, al
je 0x43ab73
xor eax, eax
cmp edi, dword [ebp + 0x14]
setge al
jmp 0x43ab7b
xor eax, eax
cmp edi, dword [ebp + 0x14]
setle al
test eax, eax
je 0x43abbc
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp byte [esp + 0x14], al
je 0x43ab92
cmp esi, dword [ebp + 0x18]
setge al
jmp 0x43ab98
cmp esi, dword [ebp + 0x18]
setle al
test eax, eax
je 0x43ac32
mov edx, dword [esp + 0x2c]
push esi
push edi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x43abef
cmp eax, dword [ebp + 0x1c]
jne 0x43ac1d
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x2c]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x13], 0
jne 0x43ac46
mov eax, dword [0x4cad6c]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6324
push eax
call fcn.004793e0
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 + 0x16]
jb 0x43ac1d
cmp al, byte [esp + 0x15]
ja 0x43ac1d
cmp cl, byte [esp + 0x11]
jb 0x43ac1d
cmp cl, byte [esp + 0x12]
ja 0x43ac1d
cmp dl, byte [esp + 0xf]
jb 0x43ac1d
cmp dl, byte [esp + 0x10]
jbe 0x43abb7
mov ebx, dword [ebp + 0x20]
xor eax, eax
cmp byte [esp + 0x14], al
sete al
lea esi, [esi + eax*2 - 1]
jmp 0x43ab82
mov al, byte [esp + 0x17]
xor ecx, ecx
test al, al
sete cl
lea edi, [edi + ecx*2 - 1]
jmp 0x43ab65
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x43ac60
mov eax, edi
sub eax, dword [esp + 0x24]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x43ac7a
mov eax, esi
sub eax, dword [esp + 0x28]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [0x4cad6c]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push ecx
call fcn.004793e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20